Booleans - Javascript Language Basics

Javascript examples for Language Basics:Introduction

Introduction

The boolean type has two values: true and false.

Demo Code

ResultView the demo in separate window

<!DOCTYPE HTML>
<html>
    <head>
        <title>Example</title>
    </head>
    <body>
        <script type="text/javascript">
            var firstBool = true;
            var secondBool = false;
        </script>
    </body>
</html>//w  w w.j  av  a 2  s .c o m

Related Tutorials