Skip to content

Instantly share code, notes, and snippets.

@dustintheweb
Created August 28, 2013 11:55
Show Gist options
  • Save dustintheweb/6365188 to your computer and use it in GitHub Desktop.
Save dustintheweb/6365188 to your computer and use it in GitHub Desktop.
Parse through an array with a loop & print out its contents
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