<!doctype html>
<head>
<title>JS Operators</title>
</head>
<body>
<script>
document.write("<h3>// Arithmetic Operators</h3>")
var x = 15 + 5;
document.write(" sum : "+x)
x = 15 - 5;
document.write("<br>difference : "+x)
x = 15 * 5;
document.write("<br>multiply : "+x)
x = 15 / 5;
document.write("<br>divide : "+x)
document.write("<h3>// Relational Operators</h3>")
var x = 15 == 5;
document.write(" is equal : "+x)
x = 15 != 5;
document.write("<br>is not equal : "+x)
x = 15 < 5;
document.write("<br>is less than : "+x)
x = 15 > 5;
document.write("<br> is greater than : "+x)
document.write("<h3>// Logical Operators</h3>")
var x = 15 > 5 && 5 < 15 ;
document.write(" And : "+x)
x = 15 ==5 || 5 == 15;
document.write("<br>Or : "+x)
</script>
</body>
</html>