-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
46 lines (30 loc) · 989 Bytes
/
Copy pathapp.js
File metadata and controls
46 lines (30 loc) · 989 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
var num1 = 50;
var num2 = 100;
var addition = num1 + num2 //Output : 150
// alert(addition)
console.log(addition); //Show result output in console
var substraction = num1 - num2
console.log(substraction); //Output : -50
var multiplication = num1 * num2
console.log(multiplication); // Output : 5000
var division = num1 / num2
console.log(division); // Output : 0.5
var modulous = num1 % num2 //Check Even Or Odd
console.log(modulous); //Output = 50
//BODMAS Rule
var bodmas = multiplication / substraction + addition;
console.log(bodmas); //Output : 50
//Unfimilar Operator
//Pre Increament
// ++num , --num Value First Assign Then Update
//Post Increament
// num++ , num-- Value First Update Then Assign
var number = 50 ;
var numberAfter = number++
// var numberAfter = number--
console.log(number); // Output : 51
console.log(numberAfter); // Output : 50
var number1 = 10 ;
var numberAfter1 = ++number1 ;
//var numberAfter1 = --number1 ;
console.log(numb);