Lesson 13 of 34 · Functions
Quiz: JavaScript Functions and Closures
Before you face the chapter boss, make sure the key ideas about functions have clicked. These six questions cover return values, default parameters, arrow functions, closures, callbacks and scope.
What this quiz covers
The questions check what you learned in the Functions chapter of Learn JavaScript. Not sure about a topic? Review its lesson first:
- JavaScript Functions: Parameters and Return Values
Learn how JavaScript functions work: declare and call them, pass parameters, return values and give parameters default values.
- JavaScript Arrow Functions Explained
Write shorter JavaScript functions with arrow syntax: implicit returns, parameters, function expressions and when arrow functions behave differently.
- JavaScript Scope and Closures
Understand JavaScript scope (global, function and block) and closures: functions that remember variables, used for counters and private state.
- JavaScript Callbacks and Higher-Order Functions
Learn JavaScript callbacks and higher-order functions: pass functions as arguments, call them later and build flexible, reusable helpers.
Keep learning
Need a quick reminder? The JavaScript cheat sheet has every topic of Learn JavaScript on one page.
Lesson last updated on .