Pregunta de entrevista de GitLab

What's the difference between .map and .forEach?