Functions in JavaScript
This course will teach you the ins and outs of JavaScript functions, which are essential for developing complex frontend or backend web applications in JavaScript.
What you'll learn
Functions are a fundamental pillar of any programming language. Without functions, programs would not be able to do anything. In this course, Functions in JavaScript, you’ll learn to use functions effectively by leveraging all their capabilities in the right circumstances. First, you’ll explore how to define and invoke functions. Next, you’ll discover the various ways to pass parameters to a function. Then, you'll understand what methods, getters, and setters are, and how they can encapsulate behavior. Finally, you’ll learn to use functions asynchronously and deep dive into advanced concepts such as scope and closures. When you finish this course, you’ll have the skills and knowledge of functions needed to develop complex backend or frontend applications in JavaScript.
Table of contents
- Intro 4m
- Defining Functions 2m
- Function Declaration 1m
- Demo: Function Declaration 2m
- Function Expression 4m
- Demo: Function Expression 2m
- Arrow Function 5m
- Demo: Arrow Function 1m
- Function Constructor 2m
- Demo: Function Constructor 1m
- Recursion 2m
- IIFE (Immediately Invoked Function Expression) 2m
- Demo: IIFE (Immediately Invoked Function Expression) 2m
- Recap 1m
- Function Parameters 3m
- Demo: Passing Data to Functions 3m
- Pass by Value / Pass by Reference 3m
- Default Parameters 3m
- Demo: Using Default Parameters 2m
- The “arguments” Object 2m
- Demo: The “arguments” Object 3m
- Rest Parameters 3m
- Demo: Rest Parameters 3m
- Passing Functions as Arguments 3m
- Demo: Callbacks 2m
- Recap 1m
- Using “this” in Global Context / Top Level Functions 5m
- Demo: Using “this” in Top-Level Functions 3m
- Using “this” in Methods 2m
- Demo: Using “this” in Methods 2m
- Using “this” in Arrow Functions 4m
- Demo: Using "this" in Arrow Functions 1m
- Controlling the Value of “this” Using bind(), call(), and apply() 3m
- Demo: Using bind(), call(), and apply() 3m
- Recap 1m