<html>
<head>
<title>JavaScript Unleashed</title>
</head>
<body>
<script language="JavaScript">
<!-- var x = "3";
var y = 7;
document.write('x = "3"');
document.write("<br>");
document.write("y = 7");
document.write("<br><hr>");
document.write("JavaScript 1.0 and 1.1<br>");
document.write("x == 3 : ");
document.write(x == 3);
document.write("<br>");
document.write('y == "7" : ');
document.write(y == "7");
//-->
</script>
<script language="JavaScript1.2">
<!--
document.write("<br><br>JavaScript version 1.2<br>");
document.write("x == 3 : ");
document.write(x == 3);
document.write("<br>");
document.write('y == "7" : ');
document.write(y == "7");
//-->
</script>
<script language="JavaScript1.3">
<!--
document.write("<br><br>JavaScript version 1.3 and higher<br>");
document.write("x == 3 : ");
document.write(x == 3);
document.write("<br>");
document.write('y == "7" : ');
document.write(y == "7");
//-->
</script>
<script language="JavaScript">
<!--
document.write("<br><br>Accomodate all versions.<br>");
document.write("x - 0 == 3 : ");
document.write(x - 0 == 3);
document.write("<br>");
document.write('"" + y == "7" : ');
document.write("" + y == "7"); //-->
</script>
</body>
</html>
|