forEach() Example 1 forEach() Example 1 This example defines an array [2, 5, 9] and then prints out the value of each index of the array.
This example defines an array [2, 5, 9] and then prints out the value of each index of the array.