Glasswall interview question

How to map through an array in JavaScript?