Skip to content

Commit 3719fe3

Browse files
dataTypes_Summary
1 parent 09ca424 commit 3719fe3

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

01_basics/05_datatypes2.js

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,24 @@ const myFunction = function(){
2525
console.log("Hello World");
2626
}
2727

28-
console.log(typeof myFunction);
29-
console.log(typeof outsideTemp);
30-
console.log(typeof anotherId);
28+
// console.log(typeof myFunction);
29+
// console.log(typeof outsideTemp);
30+
// console.log(typeof anotherId);
31+
32+
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33+
34+
//Stack(Primitive),Heap(Non-Primitive)
35+
36+
let myName = "Aman";
37+
let lastName = myName;
38+
lastName = "Kumar";
39+
// console.log(myName);
40+
// console.log(lastName);
41+
let user1 = {
42+
name:"Aman",
43+
age:21
44+
}
45+
let user2 = user1;
46+
user2.name = "Kumar";
47+
console.log(user1.name);
48+
console.log(user2.name);

0 commit comments

Comments
 (0)