function foo() { return typeof null === 'undefined'; }
for (var i=0; i<1000; i++) console.log(foo());
Run code in Chrome console and see results:
132 false
868 true
But why?
function foo() { return typeof null === 'undefined'; }
for (var i=0; i<1000; i++) console.log(foo());
Run code in Chrome console and see results:
132 false
868 true
But why?