Functions, Scope & Closures

← JavaScript course — Chapter 2 of 5

How scope works in JavaScript: var vs let, hoisting, closures, arrow functions, default parameters, and IIFEs.

~~~

Your score — Functions, Scope & Closures

/ (%)

Next chapter: Objects & Arrays →
~~~

Learn more

These quizzes are based on tutorials published on this site. Go deeper on Functions, Scope & Closures:

~~~

About this course

This is a chapter of the free JavaScript quiz course. Answer each question, get immediate feedback with an explanation, and move on. Your progress is saved in your browser — nothing leaves your machine.

All chapters of the JavaScript courseall quiz courses