Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

JavaScript: Scope

via LinkedIn Learning

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn about the scope options for JavaScript variables, including global, local, and block scope.

Syllabus

Introduction
  • Learn how to properly scope your variables
  • Course prerequisites
1. Introduction to Variable Scope
  • Setup for this course
  • What is scope in JavaScript?
  • What are closures?
  • The different types of scope
  • Hoisting explained
2. Global Variables
  • What are global variables?
  • Challenge: Define global variable
  • Solution: Define global variable
3. Local Variables
  • What are local variables?
  • Challenge: Define local variable
  • Solution: Define local variable
4. Block-Scoped Variables
  • What are block-scoped variables?
  • Explore block-scoped variables with code
  • Challenge: Define let/const variables
  • Solution: Define let/const variables
Conclusion
  • JavaScript strict mode
  • Next steps

Taught by

Emmanuel Henri

Reviews

4.6 rating at LinkedIn Learning based on 134 ratings

Start your review of JavaScript: Scope

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.