What is Global Scope in JavaScript, Scope and Variable Accessibility, Codecademy's Learn JavaScript

preview_player
Показать описание
In this JavaScript video, we learn What is Global Scope in JavaScript, Scope, and Variable Accessibility. Codecademy's Learn JavaScript Course teaches us about scope, and this specific lesson goes over global scope. We learn that if variables are declared outside any code blocks, then those variables will be accessible globally to any code in our program. Understanding global scope in JavaScript is the first step to the understanding scope and variable accessibility within JS. Make sure to understand this lesson concerning global scope in JavaScript before continuing on to the next lessons!
Рекомендации по теме