Advertisement
sauLVP

Boolean

Jan 31st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Boolean Object</title>
  5. </head>
  6. <body>
  7. <script>
  8. var b1=new Boolean(1);
  9. var b2=new Boolean(2);
  10. document.write("<br>b1="+b1.toString());
  11. document.write("<br>b2="+b2.valueOf());
  12. </script>
  13. </body>
  14. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement