Created
May 10, 2020 20:32
-
-
Save Nathan-Nesbitt/01e89c3e82c79cdef2a92e6b1e27d0d0 to your computer and use it in GitHub Desktop.
For Of Loop Example
This file contains hidden or 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
| // Create an array of fruits // | |
| var fruits = ['Orange', 'Banana', 'Apple']; | |
| // Loop through the values in that array | |
| for (var fruit of fruits) { | |
| console.log(fruit); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample code for https://nathan.nesbitt.ca/blog-posts/IntroductionToJavascript.html