-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathb.js
35 lines (33 loc) · 928 Bytes
/
b.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
/* operator
Arithmatic => + - * / %**++
relational => < <= > >= != === != ?:
Assigment => += -====*=
logical => && || ! ^(XOR)
typeof
*/
// console.log(5**3);
// console.log(10 == 10) // only value check
// console.log(10 == "10")// only value check
// console.log(10 === "10")// value chaeck and data type check
// console.log(5 != "5")
// console.log(5 !== "5")
// console.log(0^0)
// console.log(0^1)
// console.log(1^0)
// console.log(1^1)
// console.log((10<3)?"True": "false")
// console.log(typeof(10))
// console.log(typeof("10"))
// console.log(typeof(true))
// console.log(10 + "5")
// console.log(typeof(10 + "5"))
// console.log(10 - "5")
// console.log(typeof(10 - "5"))
// console.log("100" - 5)
// console.log(typeof("100" - 5))
// console.log("100" * 5)
// console.log(typeof("100" * 5))
// console.log(100 + "a")
// console.log(typeof(100 + "a"))
// console.log(100 * "a")
// console.log(typeof(100 * "a"))