<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>
|