Explore Library
FlashcardIntermediate

Closures vs. the 'this' Keyword

Closures capture surrounding variables, but 'this' is determined by how a function is called, not by closure scope.

Question

Do closures capture the value of 'this' from their surrounding scope?

Click to reveal answer