Pergunta de entrevista da empresa GitLab

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