Javascript. Намуна 05

Печать

Намунаи 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>
</body>
</html>
 

Произведение «OFTOB.COM» публикуется на условиях лицензии Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Непортированная.