Scope, Closures and the Call Stack Quiz

Interactive Quiz ⋅ 12 Questions
By Stephen Gruppetta

In this quiz, you’ll test your understanding of Scope, Closures and the Call Stack.

By working through this quiz, you’ll revisit the call stack, recursion, lexical scope and shadowing, using names before their line, closures and the factories that make them, memoize(), pipelines of array methods, wrappers, compose(), and curried functions.

Most questions show a short program and ask what it prints when you run it in JavaScript. Good luck!

The quiz contains 12 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 holds up a glowing capsule beside a machine with nested scope domes, a call stack tower of colored trays, and a closure conveyor feeding a return tray.

Course

Scope, Closures and the Call Stack

Learn how the call stack, scope and closures work in JavaScript. Follow nested and recursive calls, build functions that remember state with factories, once() and memoize(), compose small functions into pipelines, and build Marco's quiz-night scorekeeping kit.

intermediate js