Created array and logged elements inside individually using for loop
Logged elements in array using forEach