-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemory.js
More file actions
57 lines (52 loc) · 1.25 KB
/
Copy pathMemory.js
File metadata and controls
57 lines (52 loc) · 1.25 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
56
57
/*
// This is an Array:
const heros = ["Arafat","Shuvo",'Yeash']
let myObj = {
name: "Arfan",
Age: 26,
}
// This is an Function:
const myFunction = function () {
// console.log("Hello world");
}
*/
/*
console.log( typeof score);
console.log( typeof scoreValue);
console.log( typeof isLoggedIn);
console.log( typeof id);
console.log( typeof anotherId);
console.log( typeof outsideTemp);
console.log( typeof bigNumber);
console.log( typeof heros);
console.log( typeof myObj);
console.log( typeof myFunction);
*/
/*
If you want to know about operators "Typeof" ,
then go through this link:
https://262.ecma-international.org/5.1/#sec-11.4
*/
/*
Memory:
2 types:
Stack{Primitive}[Copies Value],
Heap{Non-Primitive}[Reference Value]
*/
// Stack{Primitive}[Copies Value] :
/*
let myYoutubename = "Arafatdotcom"
let anotherChannel = myYoutubename
anotherChannel = "Arfandotcom"
// console.log(anotherChannel);
// console.log(myYoutubename);
// Heap{Non-Primitive}[Reference Value] :
let userOne = {
email: "usergoogle.com",
upi: 'userbl'
}
let userTwo = userOne
userTwo.email = "arafaatdotcom"
// console.log(userOne.email);
// console.log(userTwo.email);
*/