From Dicts to JavaScript Objects for Pythonistas Quiz
Interactive Quiz ⋅ 11 Questions
By Stephen Gruppetta
In this quiz, you’ll test your understanding of From Dicts to JavaScript Objects for Pythonistas.
By working through this quiz, you’ll revisit what square brackets and dots mean in an
object, how Object.entries() and a Map stand in for a dict’s methods and number
keys, when ?? and || give different defaults, why in finds more than your own
keys, where ?. belongs in a chain, how a Set compares objects, and what JavaScript
Object Notation (JSON) text accepts and gives 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 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!