JavaScript Metaprogramming for Pythonistas Quiz
Interactive Quiz ⋅ 8 Questions
By Stephen Gruppetta
In this quiz, you’ll test your understanding of JavaScript Metaprogramming for Pythonistas.
By working through this quiz, you’ll revisit why a get trap sees every read where
__getattr__() sees only the missing ones, how the receiver keeps a getter’s reads on
the proxy, what a set trap’s boolean tells the caller, what a proxy must report about
frozen properties, why only the saved well-known symbols hook a protocol, and what a tag
function receives.
Most questions show a short snippet and ask what it does in JavaScript, often next to the Python you’d write for the same job. Good luck!
The quiz contains 8 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 Metaprogramming for Pythonistas
Build a settings audit in JavaScript from Python's attribute hooks, and learn proxies, traps, Reflect, well-known symbols, tagged templates, and when a factory beats a metaclass.