Pergunta de entrevista da empresa Versal Group

What's the difference between forEach and map in JavaScript?