Pergunta de entrevista da empresa IPD Analytics

What’s the difference between map, forEach and reduce? How do they differ from each other and how do they compare to the normal “for” loop? How would you decide when to use what?