fkling/jsdeepdive

In "this - example", the last line produces a different output

OrenShalev opened this issue · 0 comments

The last line of code in the example in 01-this2.md is:
say(); // My names is undefined

The actual output, at least in current Chrome and Safari, is in fact "My name is ", because the window object actually has a .name prop initialized to an empty string.

BTW, In node v... the output is indeed "My name is undefined", in case that matters in this talk's context.