Pergunta de entrevista da empresa Glasswall

How to map through an array in JavaScript?