-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemory.html
More file actions
76 lines (69 loc) · 1.68 KB
/
Copy pathMemory.html
File metadata and controls
76 lines (69 loc) · 1.68 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Memory & Details | JavaScript | Al- Arafat </title>
</head>
<body>
<H1> Assalamualaikum Or-Rohmatullah </H1>
<H2> Al - Arafat </H2>
</body>
<script src="Memory.js"></script>
<script src="test-6.js"></script>
<script>
// Type-1:
/*
// 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);
*/
</script>
</html>