Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#05 - Differences between undefined and null #54

Closed
oagarcia opened this issue Jan 8, 2016 · 1 comment
Closed

#05 - Differences between undefined and null #54

oagarcia opened this issue Jan 8, 2016 · 1 comment

Comments

@oagarcia
Copy link

oagarcia commented Jan 8, 2016

"undefined means a variable has not been declared"

A variable that has not been declared doesn't exists, so this statement is contradictory.
Hence, if you reference a variable that is not declared, it's value is not undefined as a reference error is thrown instead. (If you talk about referencing a non existing property of an object, that shouldn't be called a variable).

@loverajoel
Copy link
Owner

@bhaskarmelkani ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants