Boolean :- genius student



  • JavaScript boolean object can represents two values ,either true or false.
  • By using the Boolean() constructor you can create the javaScript boolean object

  • Code:-

    <!DOCTYPE html>
    <html>

    <head>
     <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>

    <body>

     <h1>Boolean()</h1>

     <input type="button" onclick="bool();" value="Get Boolean(7 > 9)">

     <script>
      function bool()
      {
       alert(Boolean(7 > 9));

      }
     </script>

    </body>

    </html>
    Boolean :- genius student Boolean :- genius student Reviewed by Network security on October 06, 2019 Rating: 5

    No comments:

    Useful Information

    Powered by Blogger.