-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFile5.js
72 lines (51 loc) · 1.26 KB
/
File5.js
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Expression & Operator in JavaScript
// What is Expression ?
// Combination of operand and operator is called Expression
// let sum = 10 + 10;
// console.log(sum);
// Types of Operator ::
// Assignment operator:
// = x=y Assign
// += x=x+y Addition
// -= x=X-y subtract
// /= x=x/y Divide
// %= x=x%y Remainder assignment operator
// **= x=x**y Exponentiation
// let a = 2;
// let b = 5;
// console.log(a**=b);
// Arithmatic operator:
// + Addition
// - subtraction
// * multiplication
// ** Exponention
// / Divide
// % modulo
// ++ Increment
// -- Decrement
// let a = 5;
// a++;
// console.log(a);
// Comparison operator :
// == equal to
// != not equal to
// === equal to and type
// !== not equal type
// > greater
// < less than
// >= greater than equal
// <= less than equal
// let a = 30;
// let b = 20;
// console.log(a<=b);
// Logical operator
// && AND if both condition true then it give true otherwise it give false
// || OR of one condition true then it give true
// ! NOT
// let a = 20;
// let b = 20;
// console.log(!(a==b));
// String or Concatenation operator:
// Two string can be add using (+) concetenation
// let name = "java"+"script";
// console.log(name);