Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e0d5a63

Browse files
problem 55 solved
1 parent e3ab4a2 commit e0d5a63

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎problem55/problem55.js‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@ let data = {
2525

2626
};
2727

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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /