iteracao array foreach code example
Example 1: how to use the foreach fnction javascript loop through array
const names = ['Anthony','Stacey','Mason','Gracie','Koda','Nani'];
forEach(function(name) {
console.log(name);
});
Example 2: javascript forEach loop array
array.forEach(function calback(item, index, array)
{
/* working codes here */
});