Answer would be Option 2
because the snippet above is using an arrow function for getName
. Arrow functions cannot create a context and therefore this
will be the global object in non-strict mode.
Answer would be Option 2
because the snippet above is using an arrow function for getName
. Arrow functions cannot create a context and therefore this
will be the global object in non-strict mode.