Learn JavaScript

Lesson 8 of 9 · Functions: Declarations, Arrows, Defaults and Rest

Module 5 · Functions: Declarations, Arrows, Defaults and Rest

Cheat Sheet: Functions on One Page

ProReading

Kenji keeps this page open in a second window while he solves the module's problems. Nothing here is new: every row comes from lessons 01 to 06, so a row you do not recognise points you back to its lesson.

Checking what this lesson needs for you…

What is inside Cheat Sheet: Functions on One Page

  1. The three spellings and the call
  2. Parameters, arguments and return
  3. Defaults, rest and spread
  4. Functions as values
  5. Recursion: the template and its cost
  6. Which spelling: the flowchart and the chart
  7. The stack in numbers
  8. The bug gallery in one line each
  9. Two programs that use the page

Module test

Ten questions on this module. Pass at 70%, and you can take it as many times as you like.

Take the module test