-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDay80.js
More file actions
49 lines (33 loc) · 901 Bytes
/
Copy pathDay80.js
File metadata and controls
49 lines (33 loc) · 901 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
45
46
*****************Variable**********************
let firstName = 'Rajeev Ranjan';
let lastName = "Yadav"
console.log(firstName+" "+lastName);
****************notes about Variable***********
1) can't be a reserved Keyword
2) Should be meaningful
3) can't start with a number
4) can't contain a space or hyphen
5) Are case sensitive
********************Constants******************
const intersetRate = 10.3;
console.log(intersetRate);
-> used for constant data once decleared can't change
*********************Primitive Types******************
let name = 'Rajeev';
let age = 35
let isApproved = false;
let firstName = undefined;
let selectColor = null;
console.log(name+" "+age+" "+isApproved+" "+firstName+" "+selectColor);
let name = 'Raje';
undefined
typeof name;
"string"
let age = 20;
undefined
>>>>>>>>>Primitive / value Type >>>>>>>>>>>>>>>>>
string
number
Boolean
null
undefined