Skip to content

Instantly share code, notes, and snippets.

@scriptschat
Created September 22, 2020 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scriptschat/68278a51519bb5c0ac4e39f18dcb8374 to your computer and use it in GitHub Desktop.
Save scriptschat/68278a51519bb5c0ac4e39f18dcb8374 to your computer and use it in GitHub Desktop.
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