Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб Scope in JavaScript Explained in 5 Minutes в хорошем качестве

Scope in JavaScript Explained in 5 Minutes 7 лет назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



Scope in JavaScript Explained in 5 Minutes

Scope in JavaScript is an incredibly important concept to understand. Without having a grasp on it, even the most basic programs become close to impossible to write. Scope refers to where your variables are accessible form within your program. JavaScript is lexically scoped, meaning where you write your variables is what determines their accessibility. Scope in JavaScript is function (and sometimes block) scoped. This meaning that functions create their own variable scope, and the variables within them get scoped to that function. Overall, there is one main important concept to understand: the scope chain. Inner scopes have access their outer scopes' variables. Outer scopes do NOT have access to their inner scopes' variables. In other words, your program will climb up the scope chain to search for variables, but it will not climb down it.

Comments