Copying, Freezing, and Sorting JavaScript Arrays for Pythonistas (Fast Track) Quiz
Interactive Quiz ⋅ 10 Questions
By Stephen Gruppetta
In this quiz, you’ll test your understanding of Copying, Freezing, and Sorting JavaScript Arrays for Pythonistas.
By working through this quiz, you’ll revisit how to copy arrays, records, and Maps, how
deep each copy goes, what === tells you about a copy, what Object.freeze() and
const each protect, how a compare function replaces Python’s key= and tuple keys,
and what the copying methods such as toSpliced() hand back.
Most questions show a short snippet ported from Python and ask what it does in JavaScript, or which version gives the same answer as the Python script. Good luck!
The quiz contains 10 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!
Related Resources
Course
Copying, Freezing, and Sorting JavaScript Arrays for Pythonistas (Fast Track)
The shorter version for experienced Pythonistas: port a league table script to JavaScript, and learn to copy, deep-copy, freeze, and sort arrays and records safely.