fkling / fkling/jsdeepdive

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

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7
Forks
5
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.