learn deep. ship safe.Practice testsFollow ByteMunSubscribe

Concept

Functions

Reusable blocks of code; in JavaScript they are values that can be passed around and returned.

Concept map

What to learn after Functions

  • Arrow functionsThe short function syntax that has no own this, arguments or prototype.
  • CallbacksFunctions passed to other functions to be called later, the original way to handle async work.
  • ClosuresA function that keeps access to the variables of the scope it was created in, after that scope has finished.
  • Generators and iteratorsFunctions that can pause and resume, producing a sequence of values on demand.

Practise Functions

All topics