Explore Library
Quiz

Closures and this Binding

Understand how closures capture variables while this is determined by call-site, not closure scope.

A regular function returned from a method 'closes over' the surrounding variables. When that returned function is later called as a standalone function, what happens to variables captured by the closure versus the value of `this`?