8000 stack memory · aachal28/learn-javascript@b957a54 · GitHub
[go: up one dir, main page]

Skip to content

Commit b957a54

Browse files
committed
stack memory
1 parent 6e8a740 commit b957a54

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

01-Basics/datatypes-summary.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,26 @@ const myfunction= function()
3434

3535
console.log(typeof bigNumber);
3636

37-
//// https://262.ecma-international.org/5.1/#sec-11.4.3
37+
//// https://262.ecma-international.org/5.1/#sec-11.4.3
38+
39+
//************************/
40+
41+
//stack (primitive) copy , heap (non-primitive) reference
42+
43+
let myyoutubename = "codestation"
44+
45+
let anothername = "thecodinggeeks"
46+
console.log(myyoutubename);
47+
console.log(anothername);
48+
49+
let userone ={
50+
email: "userone",
51+
upi:"user@ybl"
52+
}
53+
let usertwo = {
54+
email:"usertwo",
55+
upi:"two@ybl"
56+
}
57+
58+
console.log(userone)
59+
console.log(usertwo);

0 commit comments

Comments
 (0)
0