Что делает JavaScript таким странным… и восхитительным? Pt 4
Scope and Context are in every language, but because Javascript is always firing callbacks and running asynchronous tasks, it’s easy to lose sight of what scope & context you’re in.
Scope and context are not the same thing. Scope is variable access - what variables the current piece of code has access to, context is the value of `this` - when you type `this` in your code, what object is it referring to?
This javascript tutorial covers scope and how it plays out in all of the functions that you create.
W
24 views
2098
582
3 days ago 00:01:00 2
говорил Толстой🙇♂️
4 days ago 00:01:58 1
НЕТ ЖАЖДЫ❓ НЕТ ОГНЯ❓
4 days ago 00:02:31 0
Они родились в этот день 28 ИЮНЯ
4 days ago 00:16:26 0
ИЗБРАННЫЙ: ТЕБЯ СКОРО ПОДНИМЕТ НЕЗНАКОМЕЦ С ВЛАСТЬЮ!
4 days ago 00:00:39 2
НОВОЕ ВРЕМЯ НАСТАЛО 💞 Предназначение человека и как жить “от сердца“
4 days ago 00:05:26 13
Эннио Морриконе - Плач ветра
4 days ago 00:20:42 0
ШОК в Од*ссе! – Россия парализовала ПВО, ВОТ ЧТО изменило всё