Open Playground
JS FunctionsLesson #216

JavaScript Advanced Functions

These chapters are best after you understand basic functions (calling, parameters, return values, expressions, and arrows).

Advanced Functions Study Path

These chapters are best after you understand basic functions (calling, parameters, return values, expressions, and arrows).

If you are not comfortable with JavaScript functions yet, start here:

JavaScript Functions Tutorial

Step 1Advanced

JavaScript Definitions

  • Function declarations
  • Function Expression
  • Arrow Functions
  • Function Constructors

Step 2Advanced

JavaScript Callbacks

A JavaScript callback is a function passed as an argument to another function, which is then executed (or "called back") at a later point in time to complete a specific task.

Step 3Advanced

The this Keyword

How this works (especially inside objects).

How this is decided by how it is called.

Step 4Advanced

The call() Method

Call a function with a chosen this.

Pass a list of arguments.

Step 5Advanced

The apply() Method

Call a function with a chosen this.

Pass an array of arguments.

Step 6Advanced

The bind() Method

Call a function with a chosen this.

Use bind() when you need a function to run later with the same this.

Step 7Advanced

Self Invoked - IIFE

Self-starting functions.

Step 8Advanced

JavaScript Closures

Functions that remember their scope

Learn how functions can remember variables after the outer function finishes.

Step 9Advanced

Function References

Function Object Methods & Properties.