Skip to content

Commit d626a49

Browse files
committed
Add Operator.html file with examples of arithmetic and logical operations in JavaScript
1 parent 7c7dd7a commit d626a49

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
8+
<script>
9+
10+
x = 250;
11+
y = 9;
12+
13+
console.log(x+y)
14+
console.log(x-y)
15+
console.log(x*y)
16+
console.log(x/y)
17+
console.log(x%y)
18+
console.log(x<y)
19+
console.log(x<=y)
20+
console.log(x>y)
21+
console.log(x>=y)
22+
console.log(x==y)
23+
console.log(x!=y)
24+
25+
console.log(12 == 67 && 67 != 78)
26+
console.log(12 == 67 || 67 != 78)
27+
28+
console.log(67 == 78||12 != 67 && 67 == 78 || 56 >= 90 && 21 > 9 || 55 < 51 )
29+
30+
31+
32+
</script>
33+
34+
</head>
35+
<body>
36+
37+
</body>
38+
</html>

0 commit comments

Comments
 (0)