Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a289455

Browse files
Operator
1 parent a23b4a8 commit a289455

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

‎ArthimeticOperator/app.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
var num1 = 50;
2+
var num2 = 100;
3+
4+
var addition = num1 + num2 //Output : 150
5+
// alert(addition)
6+
console.log(addition); //Show result output in console
7+
8+
var substraction = num1 - num2
9+
console.log(substraction); //Output : -50
10+
11+
var multiplication = num1 * num2
12+
console.log(multiplication); // Output : 5000
13+
14+
var division = num1 / num2
15+
console.log(division); // Output : 0.5
16+
17+
var modulous = num1 % num2 //Check Even Or Odd
18+
console.log(modulous); //Output = 50
19+
20+
//BODMAS Rule
21+
22+
var bodmas = multiplication / substraction + addition;
23+
console.log(bodmas); //Output : 50
24+
25+
//Unfimilar Operator
26+
27+
//Pre Increament
28+
// ++num , --num Value First Assign Then Update
29+
30+
//Post Increament
31+
// num++ , num-- Value First Update Then Assign
32+
33+
var number = 50 ;
34+
var numberAfter = number++
35+
// var numberAfter = number--
36+
37+
console.log(number); // Output : 51
38+
console.log(numberAfter); // Output : 50
39+
40+
var number1 = 10 ;
41+
var numberAfter1 = ++number1 ;
42+
//var numberAfter1 = --number1 ;
43+
44+
console.log(numb);
45+
46+

‎ArthimeticOperator/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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>Operator</title>
7+
</head>
8+
<body>
9+
<h1 style="text-align: center;">Check Console Please ( Ctrl + Shift + i )</h1>
10+
<script src="app.js"></script>
11+
</body>
12+
</html>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /