You are viewing a single comment's thread from:

RE: The JavaScript Journey #4 - Special Values & Precise Comparisons

in #programming7 years ago (edited)

Your are going into some hard-to-understand details (for beginners), but I think that's all right, since people can always ask :)

I wrote something about null and undefined a while ago. You may find this interesting. Also in the comments, I explained a good way to check for the existence of indices in associative arrays, which can only be done with a typeof comparison to undefined:

https://stackoverflow.com/questions/5076944/what-is-the-difference-between-null-and-undefined-in-javascript

(answer by sebastian)

Sort:  

You're right! It is a bit abstract to comprehend in the beginning. Hence, me stating for the time being to view them as interchangable. Not until next lesson, where I'll be writing about variables, was I planning to explain what the concrete diffrence is. The piece you wrote explains this difference perfectly!

Coin Marketplace

STEEM 0.17
TRX 0.16
JST 0.029
BTC 75904.17
ETH 2906.60
USDT 1.00
SBD 2.64