Silver and gold pipes wrapped around a shape

Functions are the workhorses of JavaScript, performing most tasks that need to be done more than once. Functions are also “first-class citizens” of JavaScript; they’re also objects, and can be assigned to variables.

As with most of the entries in the overall JS reading list, there are a few advanced topics to cover here, including closures, but the existing material is a good start for novice and intermediate JavaScript coders.

Time: 40 minutes

Prerequisites: JavaScript Operands & Operators

  1. Introduction to Functions
  2. Scope
  3. Callbacks
  4. return
  5. Anonymous & Self-Executing Functions

Rendering by fdecomite, used under a Creative Commons Attribution 2.0 Generic license

Enjoy this piece? I invite you to follow me at to learn more.