JavaScript Variables Lifecycles

JavaScript Variables Lifecycles
JavaScript Variables Lifecycles
English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 3h 10m | 692 MB

Understand JavaScript Engine phases and lifecycles of the “var”, “let”, “const”. Scopes, hoisting, closures simplified.

In this course, the author will dive deeper into the JavaScript and explain to you what happens under the hood when you declare any variable or function. You will understand what happens on the “Compilation” and “Execution” phases in JavaScript Engine. He will make explain to you what is a variable declaration, initialization, and assignment that are all-together called Variable Lifecycle Phases. We will also focus on this course on the Variables Usage Guidelines like Making Code clear and readable for others,Always declare variables before first usage, Always use “use strict” globally, Don’t expose to the outer scopes local variables.

This course provides several practical exercises where you will need to apply gain knowledge about different variables, hoisting, scopes and closures.

What You Will Learn

  • Explain the difference between global scope, function scope, and block scope
  • Understand how variables declared using “var” behave
  • Explain the difference between “let” and “const”
  • Practice different variables declarations types
  • Understand two JavaScript Engine Phases – “Compilation” and “Execution”
  • Understand variables lifecycle phases for variables declared using “var”, “let” and “const”
  • Explain lifecycle phases for the undeclared variables
  • Understand lifecycle of the function
  • Practice and understand most important variables usage guidelines
Table of Contents

Course Setup
1 Intro
2 Git repository and Coding Environment setup

Scopes
3 Recap of the “var”
4 Scopes – Global, Function and Block

Var, Let and Const
5 let
6 const
7 Variables Usage Guidelines
8 Var, Let or Const
9 CHALLENGE 1-1 – let, var and const
10 CHALLENGE 1-1 – let, var and const – SOLUTION
11 CHALLENGE 1-2 – let, var and closures
12 CHALLENGE 1-2 – let, var and closures – SOLUTION

JavaScript Engine Phases
13 JavaScript Engine Phases

Variable Lifecycle Phases
14 Variable Lifecycle Phases
15 Lifecycle of the “var”
16 Undecleard variable lifecycle
17 Lifecycle of the “let”
18 Lifecycle of the “const”
19 Function lifecycle – Part 1
20 Function lifecycle – Part 2
21 What is finally hoisting
22 DEMO – Putting different variables lifecycles together
23 DEMO – Putting different variables lifecycles together – SOLUTION, Part 1
24 DEMO – Putting different variables lifecycles together – SOLUTION, Part 2
25 CHALLENGE 1-3 – Variable Lifecycles
26 CHALLENGE 1-3 – Variable Lifecycles – SOLUTION

Summary
27 Variables Phases Summary