Created
August 28, 2013 11:55
-
-
Save dustintheweb/6365188 to your computer and use it in GitHub Desktop.
Parse through an array with a loop & print out its contents
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
var cities = ["Melbourne", "Amman", "Helsinki", "NYC", "Tulsa", "Nome"]; | |
for (var i = 0; i < cities.length; i++) { | |
console.log("I would like to visit " + cities[i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment