Javascript examples for Language Basics:Introduction
The boolean type has two values: true and false.
<!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