JavaScript Advanced
This section covers advanced function topics in JavaScript.
These chapters are best after you understand basic functions (calling, parameters, return values, expressions, and arrows).
Note
If you are not comfortable with JavaScript functions yet, start here:
Advanced Functions Learning Path
Quick Start
Step 1
JavaScript Definitions
How functions are defined.
How they are used and how they are called.
Advanced
Step 2
The this Keyword
How this works (especially inside objects).
How this is decided by how it is called.
Advanced
Step 5
The bind() Method
Call a function with a chosen this.
Use bind() when you need a function to run later with the same this.
Advanced
Step 6
Self Invoked Expressions
Functions that run immediately (mostly historical, still useful sometimes).
Advanced
Step 7
JavaScript Closures
Functions that remember their scope
Learn how functions can remember variables after the outer function finishes.
Advanced