Oh, That's Why.

EP05 — Scope — Global, Function & Block

11 min · 20. apr. 2026
episode EP05 — Scope — Global, Function & Block cover

Beskrivelse

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 that makes global scope, function scope, and block scope feel completely natural. She also explains the classic for loop bug that catches almost every JavaScript developer, and exactly why switching from var to let fixes it. Five episodes in. Everything connects. You can find the Medium article here [https://medium.com/@gize.bonilla/846e426ed423].

Kommentarer

0

Vær den første til at kommentere

Tilmeld dig nu og bliv en del af Oh, That's Why.-fællesskabet!

Kom i gang

2 måneder kun 19 kr.

Derefter 99 kr. / måned · Opsig når som helst.

  • Podcasts kun på Podimo
  • 20 lydbogstimer pr. måned
  • Gratis podcasts

Alle episoder

10 episoder