JavaScript Classes for Pythonistas Quiz
Interactive Quiz ⋅ 10 Questions
By Stephen Gruppetta
In this quiz, you’ll test your understanding of JavaScript Classes for Pythonistas.
By working through this quiz, you’ll revisit how a Python class ports to JavaScript:
constructor and this in place of __init__() and self, fields that every instance
starts with, # 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 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
JavaScript Classes for Pythonistas
Port a swimming pool's booking module from Python to JavaScript, and learn constructors, fields, private state, static members, subclasses, and methods that keep their this.