JavaScript Arrays for Pythonistas (Fast Track) Quiz

Interactive Quiz ⋅ 11 Questions
By Stephen Gruppetta

In this quiz, you’ll test your understanding of JavaScript Arrays for Pythonistas (compact).

By working through this quiz, you’ll revisit how .at(), .slice(), and .concat() stand in for Python’s negative indexes, slices, and +, why parentheses don’t make a tuple, how .splice() changes an array in place, what .indexOf() and === do when a search finds nothing or two arrays look the same, and what .sort() hands back and how it compares numbers.

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 11 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

A cheerful developer feeds name cards onto a rotating conveyor machine with PUSH, SHIFT, SPLICE and SORT panels and six numbered sorting slots.

Course

JavaScript Arrays for Pythonistas (Fast Track)

Port a Python pager-rota script to JavaScript while building arrays, adding and removing at the ends, taking copies, editing in place with splice, searching, and sorting numbers.

basics js py