Question d’entretien chez epay

Whats the difference between map and foreach in javascript