JavaScript Classes for Pythonistas (Fast Track) Quiz
Interactive Quiz ⋅ 11 Questions
By Stephen Gruppetta
In this quiz, you’ll test your understanding of JavaScript Classes for Pythonistas (compact).
By working through this quiz, you’ll revisit how a Python class ports to JavaScript:
constructor and this in place of __init__() and self, initializing a base class’s fields before its constructor body runs, # fields behind getters, static members and factories, subclass
constructors that call super() first, comparing and copying instances, and keeping
this in a callback.
Most questions show a short snippet and ask what it does in JavaScript, where a Python habit would lead you to expect something else. 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
Course
JavaScript Classes for Pythonistas (Fast Track)
Port a swimming pool's booking module to JavaScript in this faster version for experienced Python programmers, covering constructors, private fields, static, extends, and this.