JavaScript Array Iteration

In JavaScript, Array iteration methods forEach() method calls a function once for each array element.

Code :