ValueLabs interview question

Difference between map and filter or forEach