LearnFrenzy
Sign in Take a free test

Array Methods · Array Methods MCQ · Question 12

Arguments passed to callbacks Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links