
005 JSJ Javascript Objects
JavaScript Jabber
00:00
JavaScript - JavaScript Closures
A closure is an object which has all the current local variables in them as slots. And that object is stored off, and whenever, whenever any function inside of that scope gets called, although that object gets reanimated. It 's kind of like a quantum superposition of all variables that were, you know, intat in that scope. If a variable is declared at the top scope, it's se global for everything below. That's what we mean by closure. Additionally, closures extend through time. So if you have a call back, even the one function has a returned a that call back function may have access to all the data that existed at the time the first highest level
Play episode from 32:20
Transcript


