forEach Method / Function

PHOTO EMBED

Sat Jan 15 2022 19:15:38 GMT+0000 (UTC)

Saved by @alba #python #javascript #iteration #foreach

JS

favMovies.forEach(function(favMovie) {
  console.log('I really like the movie', favMovie)
})
content_copyCOPY

for each of the fav movie it is going to iterate it does not need the index