-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFile4.js
101 lines (58 loc) · 1.31 KB
/
File4.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Primitive Data Type in JavaScript :
// What is Primitive Data Type ?
// What is Data Type ?
// let a = 10;
// 7 Type Of Primitive Data Type in Javascript
// typeOf :: Typeof in JavaScript is an operator used for type
//checking and returns the data type of the operand passed to it.
// let b = "sufyan";
// console.log(typeof b);
// Undefined
// Number
// Null
// String
// Symbol
// BigInt : to store big integer values that are too big to be represented by a normal JavaScript Number.
// Boolean : true & false
// undefined
// let name;
// console.log(name);
// number
// let a = 20;
// console.log(typeof a);
// Null
// let a = null;
// console.log( a);
//string
// let firstName = "sufyan";
// console.log(typeof firstName);
//symbol
// let a = Symbol("javascript");
// console.log(typeof a);
// BigInt
// let a = BigInt("22222222222222222");
// console.log(typeof a);
// Boolean
// true = 1
// false = 0
// let a = false;
// console.log(typeof a);
// Challenge :: Question
// 1:
// let a = 10+"10";
// console.log(a);
//2:
// let a = "java"+"script";
// console.log(a);8;
//3:
// let a = "java"-"script";
// console.log(a);
//4:
// let a = true + true;
// console.log(a);
//5:
// let a = true + false;
// console.log(a);
//6:
// let a = false-true;
// console.log(a);