Pregunta de entrevista de OpenText

Difference between map and forEach, map & flatMap