Back to JavaScript

Functions & Scope

Master functions, the building blocks of programs, and understand variable scope.

2 weeks

Topics in this Chapter

1

Function Declarations & Expressions

Understand the two primary ways to create functions and the concept of hoisting.

2

Arrow Functions

Learn the concise syntax of ES6 arrow functions and their lexical 'this' binding.

3

Default & Rest Parameters

Create more flexible functions with default values and a variable number of arguments.

4

Closures

Understand how closures give functions persistent access to their outer scope.

GeekDost - Roadmaps & Snippets for Developers