3 ms·
If you enjoyed this you might also like the following strange Chrome bug: http://stackoverflow.com/questions/37939455/why-does-the-value-of-typeof-null-change-
by weinzierl 10y ago
If you enjoyed this you might also like the following strange Chrome bug:
http://stackoverflow.com/questions/37939455/why-does-the-value-of-typeof-null-change-inside-a-loop http://stackoverflow.com/questions/37939455/why-does-the-val...
Quote from Stackoverflow:
function foo() {
return typeof null === 'undefined';
}
for(var i = 0; i < 1000; i++) console.log(foo());
should print 1000 times false, but on some machines will print false for a number of iterations, then true for the rest.