map basic
by ptums
HTML
<div id="first-map">
</div>
JavaScript
// my example array to execute the map method on
const myWebStack = ['JavaScript', 'HTML', 'CSS', 'somtimes PHP', 'sometimes Python', 'sometimes SaSS'];
// executing the map method on the array myWebStack
myWebStack.map(function(item, index, array) {
console.log(item);
});
// the return message is this...
/*
"JavaScript"
"HTML"
"CSS"
"somtimes PHP"
"sometimes Python"
"sometimes SaSS"
*/