EPISODE · Apr 20, 2026 · 11 MIN
EP05 — Scope — Global, Function & Block
from Oh, That's Why. · host Gize Bonilla
You have written a variable. And from somewhere else in your code,JavaScript acts like it does not exist.In this episode, Alex Vega explains why — through a building analogy thatmakes global scope, function scope, and block scope feel completely natural.She also explains the classic for loop bug that catches almost everyJavaScript developer, and exactly why switching from var to let fixes it.Five episodes in. Everything connects.You can find the Medium article here.
Embed this episode
Ready to play
EP05 — Scope — Global, Function & Block
No transcript for this episode yet
Similar Episodes
No similar episodes found.
Similar Podcasts
No similar podcasts found.