JavaScript: Functions

JavaScript: Functions

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 0h 49m | 76 MB

JavaScript is the most commonly used programming language and functions are one of the fundamental building blocks in JavaScript. The skills you learn in this course will help you learn other JavaScript frameworks such as React and Node.js.

Code is hard to maintain, especially when you keep adding new features to your project over several months and years. If you are not careful, you can end up with spaghetti code where several parts of the project are essentially doing the same task and any change in one feature can cause changes in several other parts of the code. In this course, JavaScript: Functions, you’ll learn the foundational knowledge to write modular code that not only prevents duplication, but also increases code readability and maintainability. First, you’ll explore what Functions are and how to write them. Next, you’ll discover the power of Arrow Functions in improving readability. Finally, you’ll gain the ability to use additional language features that come with JavaScript out-of-the-box to write applications with multiple functions interacting with each other. When you’re finished with this course, you’ll have the skills and knowledge of Functions needed to write modular, re-usable, and concise code in JavaScript.

Table of Contents

Course Overview
1 Course Overview

Writing Modular Code with Functions
2 Introduction
3 Setting up the Environment
4 Introducing Functions
5 Understanding Function Scope
6 Understanding Block Scope
7 Immediately Invoked Function Expression
8 How Closures Work
9 Summary

Improving Readability with Arrow Functions
10 Overview
11 Introducing Arrow Functions
12 Writing Arrow Functions
13 Demo – Add 2 numbers
14 Behavior of This Keyword
15 Demo – Using This Keyword
16 Summary

Changing Function Context and Built-in Functions
17 Overview
18 Understanding Function Context
19 What Is the call Method
20 What Is the apply Method
21 What Is the bind Method
22 Using Built-in Functions
23 Summary

Constructing Rest Parameters and the Spread Operator
24 Overview
25 What Are Default Parameters
26 Constructing Rest Parameters
27 Using the Spread Operator
28 Summary