Home »
MCQs »
JavaScript MCQs
Which JavaScript method is used to call a function (a callback function) once for each array element?
67. Which JavaScript method is used to call a function (a callback function) once for each array element?
- for()
- traverse()
- forEach()
- foreach()
Answer: C) forEach()
Explanation:
The JavaScript method forEach() is used to call a function (a callback function) once for each array element.