This lesson is for members. Join us?
Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!
Learn Array.forEach and Array.map in JavaScript
In this lesson, we'll learn how to use two new array helper methods that was introduced to JavaScript in ES6, namely the Array.forEach and Array.map functions.
The forEach method lets us execute a callback function on each array element.
The map method lets us create a new array with the results of calling a callback on every element in the array.