Oh, That's Why.
A function runs and returns. Its variables should be gone. And then another function uses one of them anyway. This is the episode the series was building toward. Alex Vega explains closures through the demolished room analogy — what they are, why they work, and why every callback, event handler, and React hook you have ever written is a closure. Six episodes in. The payoff. Oh, That's Why. — JavaScript, finally making sense. You can find the Medium article here [https://medium.com/@gize.bonilla/35f4192fc25d].
11 episoder
Kommentarer
0Vær den første til at kommentere
Tilmeld dig nu og bliv en del af Oh, That's Why.-fællesskabet!