this
is the runtime context of afunction
.this
is determined by the call site- the same function can be executed with different
this
runtime contexts. You can think ofthis
as another arguement to the function - Comparison: scopes are generally defined at compile time (exception:
eval
)
const person = {
name: 'Alex',