Functions, Scope & Closures
Closures, the temporal dead zone, lost `this` bindings and array method gotchas.
Ready to start?
- 7 questions
- ~5 mins
Answer order is shuffled each attempt. Your results are saved only in this browser.
What this quiz covers
Closures, hoisting, this and higher-order functions.
- Scope
- Closures
- this
- Hoisting
- Higher-order functions
- Objects
- Arrays
JavaScript learning roadmap
See where this quiz fits from beginner to expert.
Want to learn more? JavaScript Quiz Preparation: Common Traps and How to Practise
9 min read
How this works
Practice or exam mode
Practice mode explains each answer straight away. Exam mode holds all answers until you finish, then shows a full review.
Shuffled answer order
Options are shuffled on every attempt, so you learn the idea rather than the position of the right letter.
Timer, flags and skips
A timer runs while you play. Flag questions to revisit them, or skip and come back from the question navigator.
Saved on your device
Scores, streaks and topic accuracy are stored in your browser only. There is no account.
Keep practising
More JavaScript quizzes
- JavaScriptAdvanced
Async JavaScript
Event loop, promises and async/await
Event loopasync/awaitPromises7 Qs~5mStart - JavaScriptBeginner
JavaScript Fundamentals
Types, coercion and equality
TypesEqualityVariables7 Qs~5mStart
Related technologies
- ReactBasic
React Core Concepts
State, props, keys and rendering
StateListsProps7 Qs~5mStart - HTMLBeginner
HTML Basics
Document structure, headings, links and forms
SemanticsImagesHeadings7 Qs~5mStart - CSSBeginner
CSS Fundamentals
Specificity, the box model and positioning
SpecificityBox modelCascade7 Qs~5mStart