Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS CompTIA Security+ AWS Certified Developer - Associate
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Mindfulness Personal Development Personal Transformation Meditation Life Purpose Emotional Intelligence Neuroscience
Web Development JavaScript React CSS Angular PHP WordPress Node.Js Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Modeling Data Analysis Data Science
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Blogging Freelancing Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
30-Day Money-Back Guarantee
Development Web Development JavaScript

JavaScript Variables Lifecycles

Understand JavaScript Engine phases and lifecycles of the "var", "let", "const". Scopes, hoisting, closures simplified.
Rating: 4.4 out of 54.4 (105 ratings)
16,638 students
Created by Bogdan Stashchuk
Last updated 2/2021
English
English [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • Explain difference between global scope, function scope and block scope
  • Understand how variables declared using "var" behave
  • Explain difference between "let" and "const"
  • Practice different variables declarations types
  • Understand two JavaScript Engine Phases - "Compilation" and "Execution"
  • Deeply 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

Course content

6 sections • 29 lectures • 3h 12m total length

  • Preview02:19
  • Let's get connected! Join the Learning Community
    00:23
  • LECTURE - Course Navigation.mp4
    01:27
  • PRACTICE - Git repository and Coding Environment setup
    03:55

  • Preview07:50
  • Preview02:26

  • LECTURE - let
    10:36
  • LECTURE - const
    11:52
  • LECTURE - Variables Usage Guidelines
    13:05
  • LECTURE - Var, Let or Const?
    16:19
  • Preview03:00
  • ✓ CHALLENGE 1-1 - let, var and const - SOLUTION
    10:14
  • CHALLENGE 1-2 - let, var and closures
    03:19
  • ✓ CHALLENGE 1-2 - let, var and closures - SOLUTION
    10:55

  • Preview02:11

  • LECTURE - Variable Lifecycle Phases
    06:09
  • LECTURE - Lifecycle of the "var"
    07:33
  • LECTURE - Undeclared variable lifecycle
    06:02
  • LECTURE - Lifecycle of the "let"
    08:29
  • LECTURE - Lifecycle of the "const"
    05:51
  • LECTURE - Function lifecycle - Part 1
    06:16
  • LECTURE - Function lifecycle - Part 2
    06:02
  • LECTURE - What is finally hoisting?
    01:49
  • DEMO - Putting different variables lifecycles together
    04:01
  • DEMO - Putting different variables lifecycles together - SOLUTION, Part 1
    07:00
  • DEMO - Putting different variables lifecycles together - SOLUTION, Part 2
    17:26
  • CHALLENGE 1-3 - Variable Lifecycles
    01:32
  • ✓ CHALLENGE 1-3 - Variable Lifecycles - SOLUTION
    09:43

  • LECTURE - Variables Phases Summary
    04:20

Requirements

  • Basic JavaScript knowledge
  • Fundamentals of CSS
  • Basic understanding of HTML

Description

Do you want to understand real difference between different types of variables in JavaScript?

Understand different types of scopes?

Want easily explain what is hoisting?

What about closures?

In this course I will dive deep into the JavaScript and explain 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.

I will make explain you what is variable declaration, initialization and assignment that are all-together called Variable Lifecycle Phases.

We will also focus in this course on the Variables Usage Guidelines:

  1. Make Code clear and readable for others

  2. Always declare variables before first usage

  3. Always use "use strict" globally

  4. Don't expose to the outer scopes local variables

You will also get several practical exercises where you will need to apply gain knowledge about different variables, hoisting, scopes and closures.

All exercises and code samples are available as Git repository.

Hope to see you onboard!

Who this course is for:

  • JavaScript developers
  • Front-end developers
  • Full-stack developers

Instructor

Bogdan Stashchuk
Software Engineer, CCIE #22608, MBA, PhD - stashchuk.com
Bogdan Stashchuk
  • 4.7 Instructor Rating
  • 6,749 Reviews
  • 158,424 Students
  • 13 Courses

Do you really want to understand and practice instead of sitting and watching long presentations or trying to code along without any clue what is happening behind the scenes?

Join me in any of my courses and you will get real knowledge based on the deep understanding of every single topic.

But who am I?

My name is Bogdan Stashchuk and I teach students more than 20 years. I am working as Software Engineer and love to teach and learn myself.

I have a huge experience in explaining difficult things in an easy to understand format backed up with practice activities. That is the perfect combination that enables you to really learn and retain gained knowledge for a long period of time.

Let's connect in the Social Networks! All links you could find under the profile picture.

See you on my courses!

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.