Paytm interview question

Difference between Map() and forEach()?