Created
November 29, 2012 00:26
-
-
Save rsolomo/4165828 to your computer and use it in GitHub Desktop.
Test showing that undefined is not an object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Undefined Test</title> | |
<meta charset='utf-8' /> | |
</head> | |
<body> | |
<script> | |
if (undefined instanceof Object) { | |
alert('undefined is an Object') | |
} else { | |
alert('undefined is not an Object') | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment