# defination The forEach calls a provides function for each element in an array. # example var num = [2, 1, 4, 5]; num.forEach(function (name) { console.log(name); }); # output 2 1 4 5