Question 12
Back to Exercise
In what order does map pass arguments to its callback?
- A element, index, array Correct
- B index, element, array
- C array, index, element
- D element only
Correct Answer: Option A
All the iteration methods (forEach, map, filter, find, some, every …) use (element, index, array). reduce adds the accumulator first.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!