Copying, Freezing, and Sorting JavaScript Arrays for Pythonistas (Fast Track)

Stephen Gruppetta 15 Lessons 2h 22m Updated intermediate js py

Port copy.deepcopy(table) as [...table], update the provisional table with the week’s results, and the confirmed table changes too: every move reads same, and the confirmed leaders come out wrong, with no error.

This is the Fast Track version of Copying, Freezing, and Sorting JavaScript Arrays for Pythonistas, for learners with more Python experience on the Intermediate and Advanced paths. You’ll port the same five-a-side league’s table script to JavaScript, covering the same ground faster, in shorter lessons.

By the end of this course, you’ll be able to:

  • Copy arrays, records, Maps, and Sets, and make a deep copy with structuredClone()
  • Make tuple-like data read-only with Object.freeze()
  • Sort records with compare functions, and break ties between teams level on points
  • Change a copy, not the original, with with() and toSpliced()
  • Port the whole league table script to JavaScript

You’ll need Python’s shallow and deep copies, tuples, and sorting with a key function, plus Node 26 and JavaScript arrays of objects, arrow functions, slice(), compare functions for numbers, and Map and Set. The Python examples use Python 3.15.

Short videos and text lessons come with exercises, a project, and a quiz.

What’s Included:

  • 15 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 2 Downloadable Resources
  • Interactive Quiz to Check Your Progress
  • 5 Hands-On Coding Exercises
  • Q&A With JavaScript Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

Getting Started

1 Lesson 1m

  1. 1. Welcome to the League Table01:57

About Stephen Gruppetta

Stephen obtained a PhD in physics and worked as a physicist in academia for over a decade before becoming a programming educator. He's constantly looking for simple ways to explain complex things.

» More about Stephen

← Browse All Courses