![]() ![]() To understand this binding, we have to understand the call-site: the location in code where a function is called ( not where it’s declared). ![]() In Chapter 1, we discarded various misconceptions about this and learned instead that this is a binding made for each function invocation, based entirely on its call-site (how the function is called). View on GitHub You Don’t Know JS: this & Object Prototypes Chapter 2: this All Makes Sense Now! You Don’t Know JS: this & Object Prototypes | You-Dont-Know-JS You-Dont-Know-JS A fork of book series on JavaScript.
0 Comments
Leave a Reply. |