JavaScript with Arrays

Added a Foreach loop below the For loop