Select from following answers:- an array of : [ 16,25,64,81 ]
- a string of : "16,25,64,81"
- an array of : [ 81,64,25,16 ]
- Program hangs
- All Above
map function loops through the original array and calls the method (square) for each value in the array. It collects the results of the function to create a new array with the results.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator