Pergunta de entrevista da empresa Agrando

Can you explain the difference between map and forEach in js.