JavaScript Zen

Is undefined equal to undefined?

That’s the question! Crockford says it is not, but let see the experiment.

var a, b;
console.log(typeof a);
console.log(a === b);

the answer is – it is.

3 thoughts on “JavaScript Zen

Leave a Reply

Your email address will not be published. Required fields are marked *