Pregunta de entrevista de AMI

How does foreach work in javascript?