🏢 The JS building: A metaphor for how variable scope works in JavaScript

preview_player
Показать описание
🏢 The JS building: A metaphor for how variable scope works in JavaScript #javascript #frontend #webdev #coding #programming

Рекомендации по теме
Комментарии
Автор

The best way to think about the scope or html divs or css nesting is to imagine it as pages of paper. Each layer on top of another. It's just z-index everywhere

CarCanic_
Автор

Conceptionally it would make more sense for me to go from top floor to bottom floor but nonetheless its a good metaphor

ViperLarry-vp
Автор

it's better to invert this mental model, far easier to understand, also Americans can't be trusted when it comes to counting floors in a building

afuzzybearsyoutubechannel