Skip to content

Commit

Permalink
completed #15 and #16
Browse files Browse the repository at this point in the history
  • Loading branch information
kinwail committed Jun 12, 2018
1 parent 343e497 commit df5742f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,19 @@ for (var i = 0; i<toyotaModels.length; i++){
* "Player: 5"
*/

var players = ['Player1', 'Player2', 'Player3', 'Player4', 'Player5']
for (var i =0; i<players.length; i++){
console.log('Player:', players[i]);
}

/*
* #16
* Create a for loop that will iterate and console.log each item in the array below:
*/
var myFavFoods = ["lemon bar", "carrot cake", "nachos", "bacon cheeseburger", "ramen", "sweet potato fries", "chimichanga"];
for(var i =0; i<myFaveFoods.length;i++){
console.log(myFavFood[i]);
}


/*
Expand Down

0 comments on commit df5742f

Please sign in to comment.