IESoftek interview question

Difference between ForEach and MAP method.