Create two boolean type variables in JavaScript

Description

The following code shows how to create two boolean type variables.

Example


<!--from w w  w.  jav  a2 s  .c  o  m-->

<html>
<head>
<script type="text/javascript">
var isOK = true;
document.writeln(isOK); //true
var isNotOK = false;
document.writeln(isNotOK); //true
</script>
</head>
<body>

</body>
</html>

Click to view the demo

The code above generates the following result.

Create two boolean type variables in JavaScript