Use Array.prototype.map method over iteration

Inlcuded a link to the mdn for more reference. I'd like to
make students more aware of these methods.