Question: Practice Program 2 used two arrays to implement a simple phone book. A more scalable solution is to make an array of an object that
Practice Program 2 used two arrays to implement a simple phone book. A more scalable solution is to make an array of an object that stores the name and corresponding phone number. Modify the program to use a single array of an object. The output should remain the same.
Step by Step Solution
3.42 Rating (177 Votes )
There are 3 Steps involved in it
To update an objects property in an array of objects use the map method to iterate ov... View full answer
Get step-by-step solutions from verified subject matter experts
