Glasswall Interview Question

How to map through an array in JavaScript?