<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript IF with NOT Operators</title>
</head>
<body>
<pre>
<script type="text/javascript">
var a;
if (!a) // true
document.write("a is undefined.");
</script>
</pre>
</body>
</html>