Skip to content
skillbld
Day 7 of 14 30 minDeclarationsArrow functionsDefault & rest params

Package up code you want to reuse. Write function declarations and arrow functions, pass in parameters with defaults, return results, and hand functions to other functions as callbacks.

By the end of today you can

  • Declare a function and call it with arguments
  • Return a value from a function and use the result
  • Write arrow functions and know when to use them
  • Use default parameters and rest parameters
  • Pass functions as values, for example as callbacks

What's inside

  • 5 sections
  • 3 diagrams and mind maps
  • 6 code examples you can run
  • 5-question quiz
  1. 1Declaring and calling a function
  2. 2Arrow functions
  3. 3Default and rest parameters
  4. 4Functions are values
  5. 5Pure functions

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free
Day 7: Functions · JavaScript · SkillBld