Create functions to parse data from data.json. You will need to use .filter(), .map(), and .reduce() Function to get arr

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Create functions to parse data from data.json. You will need to use .filter(), .map(), and .reduce() Function to get arr

Post by answerhappygod »

Create functions to parse data from data.json. You will need touse .filter(), .map(), and .reduce()
Function to get array of active accounts onlyFunction to get the highest balance. Function should return balancestring valueFunction to get array of friends of all accounts. Function shouldreturn array namesFunction to get string of account holders names. Function shouldreturn a single string with comma separated names
JSON FILE BELOW
[ { "isActive": false, "balance": 1343.69, "name": "Hobbs Macdonald", "registered": "2015-02-08T02:36:36 +05:00", "latitude": -80.356177, "longitude": -125.276756, "friends": [ { "id": 0, "name": "Hart Guthrie" }, { "id": 1, "name": "Kasey Gomez" } ] }, { "isActive": false, "balance": 2426.98, "name": "Nelda Sykes", "registered": "2015-02-01T10:16:00 +05:00", "latitude": 72.078718, "longitude": -159.71397, "friends": [ { "id": 0, "name": "Sullivan Preston" }, { "id": 1, "name": "Mcgee James" } ] }, { "isActive": true, "balance": 1257.12, "name": "Shaw Walls", "registered": "2018-08-26T02:26:15 +04:00", "latitude": -76.647851, "longitude": 173.881151, "friends": [ { "id": 0, "name": "Reyna Wilkins" }, { "id": 1, "name": "Deann Christensen" } ] }, { "isActive": true, "balance": 1431.44, "name": "Boyer Riley", "registered": "2018-09-24T10:12:16 +04:00", "latitude": -60.360275, "longitude": 19.826812, "friends": [ { "id": 0, "name": "Steele Coleman" }, { "id": 1, "name": "Darcy Dixon" } ] }, { "isActive": false, "balance": 3038.94, "name": "George Snider", "registered": "2017-09-25T09:12:43 +04:00", "latitude": -67.814834, "longitude": -145.045949, "friends": [ { "id": 0, "name": "Irene Rivers" }, { "id": 1, "name": "Dora Hart" } ] }]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply