2. Execute your function and output the results as an array in console log for the following...
Fantastic news! We've Found the answer you've been seeking!
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 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 }
Related Book For
Thermodynamics for Engineers
ISBN: ?978-1133112860
1st edition
Authors: Kenneth A. Kroos, Merle C. Potter
Posted Date: