Skip to content

Instantly share code, notes, and snippets.

@rsolomo
Created November 29, 2012 00:26
Show Gist options
  • Save rsolomo/4165828 to your computer and use it in GitHub Desktop.
Save rsolomo/4165828 to your computer and use it in GitHub Desktop.
Test showing that undefined is not an object
<!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