Question: 2. Execute your function and output the results as an array in console log for the following scenarios: a) filtered by Bob b) filtered by
2. Execute your function and output the results as an array in console log for the following scenarios:
a) filtered by Bob
b) filtered by Charlie
c) sorted by acctNum
d) filtered by Alice; sorted by balance ascending
acctData = [ { "acctNum": "AAA - 1234", "user": "Alice" }, { "acctNum": "AAA - 5231", "user": "Bob" }, { "acctNum": "AAA - 9921", "user": "Alice" }, { "acctNum": "AAA - 8191", "user": "Alice" } ];
balance = { "AAA - 1234": 4593.22, "AAA - 9921": 0, "AAA - 5231": 232142.5, "AAA - 8191": 4344 }
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
Find below the code in js I have added comments to understand the code Given data acctData and balance arrays const acctData acctNum AAA 1234 user Ali... View full answer
Get step-by-step solutions from verified subject matter experts
