Using the Equal Operator : Operator : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Operator »

 

Using the Equal Operator



<html>
<head>
  <title>Using the Equal Operator</title>
</head>
<body>  <script type="text/javascript">
  <!--
    var x = 5;
    var y = 5;
    var z = 10;

    document.write("x = " + x + "<br>");
    document.write("y = " + y + "<br>");
    document.write("z = " + z + "<br>");
    document.write("Is x equal to y,(x == y)? ");
    document.write(x == y);
    document.write("<br>Is y equal to z,(y == z)? ");
    document.writeln(y == z);
  // -->
  </script>
   
</body>
</html>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Operator