Question d’entretien chez Zoom Communications

Describe the difference between javascript's foreach and map methods.