CI&T interview question

What is the difference between map and forEach?