Versal Group interview question

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