Array.forEach(CALLBACK)
This function executes a callback function on each entry in an array.
In this example, ten pigs are stamped at random locations on the screen. When you tap the screen, the boom function is called for each pig.