JavaScript Under the Hood for Pythonistas Quiz

Interactive Quiz ⋅ 9 Questions
By Stephen Gruppetta

In this quiz, you’ll test your understanding of JavaScript Under the Hood for Pythonistas.

By working through this quiz, you’ll revisit how to read a sampling profile, how to time two versions fairly, which engine behavior is V8’s rather than JavaScript’s, how to build records that share a shape, what keeps an object reachable, what a WeakMap and a FinalizationRegistry do and don’t promise, and why .includes() finds NaN where .indexOf() can’t.

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 9 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 developer reads a PROFILE tape beside a HEAP gauge while a GC brush sweeps old cubes into a bin, next to a MAP shape conveyor and a WEAKMAP drawer.

Course

JavaScript Under the Hood for Pythonistas

Investigate why a game server's match-log processor slows down, and learn to profile JavaScript fairly, explain what V8 learns, trace what keeps objects alive, and read the specification.