OK, so what is the value of z then and why? Assume the window is the global object.
The whole question was intentional as its more than the window or the this in an arrow function. Its the combination of all those things plus putting your self in a real working environment with issues to fix and deadlines to hit etc that makes them really tricky.
And yes I'm aware of Node and V8 and the event class (I've written server-side Javascript before)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
OK, so what is the value of z then and why? Assume the
window
is the global object.The whole question was intentional as its more than the
window
or thethis
in an arrow function. Its the combination of all those things plus putting your self in a real working environment with issues to fix and deadlines to hit etc that makes them really tricky.And yes I'm aware of Node and V8 and the event class (I've written server-side Javascript before)