Пример 5
<html>
<head>
<meta charset='utf-8'/>
<title>Пример 5</title>
</head>
<body>
<script type="text/javascript">
<!--
var a = 33;
var b = 10;
document.write("a = ");
document.write(a);
document.write("<br>");
document.write("b = ");
document.write(b);
document.write("<br>");
document.write("(a == b) => ");
result = (a == b);
document.write(result);
document.write("<br>");
document.write("(a < b) => ");
result = (a < b);
document.write(result);
document.write("<br>");
document.write("(a > b) => ");
result = (a > b);
document.write(result);
document.write("<br>");
document.write("(a != b) => ");
result = (a != b);
document.write(result);
document.write("<br>");
document.write("(a <= b) => ");
result = (a <= b);
document.write(result);
document.write("<br>");
document.write("(a >= b) => ");
result = (a >= b);
document.write(result);
document.write("<br>");
//-->
</script>
<p>Проверьте работу скрипта, присваивая переменным различные значения</p>
</body>
</html>