When you access this from within a function, you’re essentially accessing its execution context.Ĭontrast that with the lexical scope, which cares about how the function was declared and in what order. The important nuance to note here is that a function’s execution context is not about how it was declared or what the function does, but about how it is called in the code. In JavaScript, functions have a reference to their execution context, which means how they were called. ![]()
0 Comments
Leave a Reply. |