Pregunta de entrevista de Cafeto Software

Could you describe what the main difference is between the cycle Array.forEach()and the method Array.map()and why you would choose one over the other?