-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path06_datatypes-summary.js
More file actions
55 lines (42 loc) · 1.12 KB
/
06_datatypes-summary.js
File metadata and controls
55 lines (42 loc) · 1.12 KB
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
const score = 100
const scoreValue = 100.3
console.log(typeof score);
console.log(typeof scoreValue);
const isLoggedIn = false
console.log(typeof isLoggedIn);
const outsideTemp = null
console.log(typeof outsideTemp);
let userEmail = undefined
// let userEmail;
console.log(typeof userEmail);
const id = Symbol('123')
const anotherId = Symbol('123')
console.log(id == anotherId);
console.log(typeof anotherId);
const bigNumber = 354848858814848484188n
console.log(typeof bigNumber);
const heros = ["shaktiman", "naagraj", "doga"];
console.log(typeof heros);
let myObj = {
name: "chetan",
age: 22,
}
console.log(typeof myObj);
const myFunction = function(){
console.log("Hello world");
}
console.log(typeof myFunction);
// *****Memory*****
let myYoutubename = "chetandotcom"
let anothername = myYoutubename
anothername = "developerdotcom"
console.log(myYoutubename);
console.log(anothername);
let userOne = {
email: "user@google.com",
upi: "user@ybl"
}
let userTwo = userOne
userTwo.email = "chetan@google.com"
console.log(userOne.email);
console.log(userTwo.email);