Skip to content

Instantly share code, notes, and snippets.

@scriptschat
Created Sep 22, 2020
Embed
What would you like to do?
Iterating using forEach loop.
const fruits = ['apple', 'orange', 'kiwi', 'grapes', 'pineapple'];
fruits.forEach(fruit => console.log(fruit));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment