Skip to content

Instantly share code, notes, and snippets.

@scriptschat
Created Sep 22, 2020
Embed
What would you like to do?
Basic for loop
const fruits = ['apple', 'orange', 'kiwi', 'grapes', 'pineapple'];
for (let i = 0; i < fruits.length; i++) {
console.log(fruits[i]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment