We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3ab4a2 commit e0d5a63Copy full SHA for e0d5a63
problem55/problem55.js
@@ -25,3 +25,15 @@ let data = {
25
26
};
27
28
+/* ==================================================
29
+ Method One: Using Dot(.) Notation
30
+===================================================== */
31
+const secondarySchoolLocation1 = data.Sophia.study[1].secondary[1].location;
32
+
33
+console.log(secondarySchoolLocation1);
34
35
+ Method Two: Using Bracket[] Notation
36
37
38
+const secondarySchoolLocation2 = data['Sophia']['study'][1]['secondary'][1]['location'];
39
+console.log(secondarySchoolLocation2);
0 commit comments