The Javascript code on this page creates an array of 4 items. It then uses the foreach statement to loop through each element of the array and outputs that element's value to the screen.