I updated my article to reflect our conversation (seemed too useful not to)
I think this goes back to an odder quirk of JavaScript where sometimes undefined also means "undeclared", but not always.
undefined
this "implicit undefined" is really more like an "undeclared", but JavaScript doesn't provide a means to distinguish the two very easily.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
I updated my article to reflect our conversation (seemed too useful not to)
I think this goes back to an odder quirk of JavaScript where sometimes
undefined
also means "undeclared", but not always.this "implicit undefined" is really more like an "undeclared", but JavaScript doesn't provide a means to distinguish the two very easily.