InterviewSolution
Saved Bookmarks
| 1. |
The primary purpose of the array map() function is that it __________(a) maps the elements of another array into itself(b) passes each element of the array and returns the necessary mapped elements(c) passes each element of the array on which it is invoked to the function you specify, and returns an array containing the values returned by that function(d) pass the elements of the array into another arrayThis question was addressed to me in exam.Origin of the question is Array and Related Methods topic in section Lexical Structures of JavaScript |
|
Answer» Correct option is (c) PASSES each ELEMENT of the array on which it is invoked to the function you specify, and RETURNS an array CONTAINING the values returned by that function |
|