Pushpay interview question

What is the difference between forEach and map array functions in js