Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="basic" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <header><h1>Testing</h1></header>
  <div id="output"></div>
</body>
</html>
 
 $(function() {
  function write(message) { document.getElementById('output').innerHTML += message + '<br>';
}
 //write(IDontExist); //runtime exception
write(typeof IDontExist); //undefined
var apple;
write(apple); //undefined
apple = null;
write(apple); //null
apple = "red";
write(apple); //red
write(apple.variety); //undefined
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
fincher42pro
0viewers