Domanda di colloquio di CI&T

What is the difference between map and forEach?