Arrays
forEach
const animals = ['dog', 'cat', 'frog'];
animals.forEach(function(animal) {
console.log(animal);
});Working with arrays
var names = ['Scott', 'Christina', 'Joel'];
var joelName = names[2];
alert(joelName);Last updated