-
-
Save scriptschat/1b64695b8c014a3c47b2a378847b4f37 to your computer and use it in GitHub Desktop.
Iterating using forEach loop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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