Skip to content

Commit e3ab4a2

Browse files
problem 55 initialization complete
1 parent 55b175d commit e3ab4a2

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

problem55/problem.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
3+
## Problem 55:
4+
5+
```
6+
let data = {
7+
Sophia: {
8+
id: 33,
9+
study: [
10+
{
11+
primary: [
12+
{ school_name: "ABC primary school" },
13+
{ location: "Peters burg" },
14+
],
15+
},
16+
{
17+
secondary: [
18+
{ school_name: "ABC secondary school" },
19+
20+
{ location: "St Lorence" },
21+
],
22+
},
23+
],
24+
},
25+
};
26+
27+
```
28+
29+
### How will you access Sophia’s secondary school location?

problem55/problem55.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
3+
4+
/* How will you access Sophia’s secondary school location? */
5+
6+
let data = {
7+
Sophia: {
8+
id: 33,
9+
study: [
10+
{
11+
primary: [
12+
{ school_name: "ABC primary school" },
13+
{ location: "Peters burg" },
14+
],
15+
},
16+
{
17+
secondary: [
18+
{ school_name: "ABC secondary school" },
19+
20+
{ location: "St Lorence" },
21+
],
22+
},
23+
],
24+
},
25+
26+
};
27+

0 commit comments

Comments
 (0)