Create a function iterateArray that logs each element of an array using forEach.

Output: