Set the variables to different values and different operators and then try...

 different values and different operators


<html>
   <body>
 
      <script type="text/javascript">
         <!--
            var a = 10;
            var b = 20;
        var c=10;
            var linebreak = "<br />";
     
            document.write("(a == b) => ");
            result = (a == b);
            document.write(result);
            document.write(linebreak);
       
            document.write("(a < b) => ");
            result = (a < b);
            document.write(result);
            document.write(linebreak);
       
            document.write("(a > b) => ");
            result = (a > b);
            document.write(result);
            document.write(linebreak);
       
            document.write("(a != b) => ");
            result = (a != b);
            document.write(result);
            document.write(linebreak);
       
            document.write("(a >= b) => ");
            result = (a >= b);
            document.write(result);
            document.write(linebreak);
       
            document.write("(a <= b) => ");
            result = (a <= b);
            document.write(result);
            document.write(linebreak);
         //-->
      </script>
     
      Set the variables to different values and different operators and then try...
   </body>
</html>

Comments

Popular posts from this blog

java script book in PDF format

use window dot location in java script

auto redirected page in java script