We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f53432 commit ddf7f7dCopy full SHA for ddf7f7d
1 file changed
02_basics/04_object.js
@@ -51,4 +51,32 @@ console.log(Object.entries(tinderUser));
51
// Object.hasOwnProperty--> Determines whether an object has a property with the specified name
52
console.log(tinderUser.hasOwnProperty('isLoggedIn'));
53
54
+///***************************OBJECT de-Structure and JSON API intro */
55
56
+const player={
57
+ playername:"Raj Shekhar",
58
+ teamname:"SuperStrikers",
59
+ position:"forward"
60
+}
61
+
62
+//another method to access the vcalue of object
63
64
+const{playername}=player
65
66
+console.log(playername);
67
68
+//******* JSON --> JavaScript Object Notation*/
69
70
71
+// {
72
+// "name":"Raj Shekhar",
73
+// "coursename":"js in hindi",
74
+// "price":"free"
75
76
+// }
77
78
+[
79
+ {},
80
81
82
+]
0 commit comments