-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproblem56.js
More file actions
51 lines (37 loc) · 665 Bytes
/
problem56.js
File metadata and controls
51 lines (37 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
let data = [
{
pHeroCourses: {
"course-x": "web development",
},
},
{
pHeroCourses: {
"course-y": "phitron",
},
},
{
pHeroCourses: {
"course-z": "acc",
},
},
{
pHeroCourses: {
"course-xyz": "level-2",
},
locationField: {
"en-US": {
lat: 19.28563,
lon: 72.8691,
},
},
},
];
/*
How will you get the output `[uses 2D matrix concept]`
1. level-2
2. 72.8621
*/
const firstOutput = data[3].pHeroCourses['course-xyz'];
console.log(firstOutput);
const secondOutput = data[3].locationField['en-US'].lon;
console.log(secondOutput);