-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoperatorjs.html
More file actions
25 lines (24 loc) · 804 Bytes
/
operatorjs.html
File metadata and controls
25 lines (24 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html>
<head>
<title>Operator Js</title>
</head>
<body>
<p>Hello</p>
</body>
<script type="text/javascript">
let num1,num2,num3 //Variable Declaration
num1=100;
num2= 20;
num3=30;
document.write("Adding Result= " + (num1 + num2)+ "<br/>");
document.write("Substration Result= " + (num1 - num2)+ "<br/>");
document.write("Multiliction Result= " + (num1 * num2)+ "<br/>");
document.write("division Result= " + (num1 / num2)+ "<br/>");
document.write("Modulus Result= " + (num1 % num3)+ "<br/>");
document.write("Increment Result= " + (num1++)+ "<br/>");
document.write("Decrement Result= " + (num2--)+ "<br/>");
// document.write("increment Result opreator first=" + (++num1)+"<br/>")
// document.write("Decrement Result opreator first=" + (--num2)+"<br/>")
</script>
</html>