Skip to content

Instantly share code, notes, and snippets.

@satyr
Created August 14, 2010 21:43
Show Gist options
  • Save satyr/524753 to your computer and use it in GitHub Desktop.
Save satyr/524753 to your computer and use it in GitHub Desktop.
null vs undefined
<script src="JSLitmus.js"></script><script>
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
(function(){
JSLitmus.test('null', function(){
var i = 100;
while(--i) var v = null;
});
JSLitmus.test('undefined', function(){
var i = 100;
while(--i) var v = undefined;
});
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment