Welcome to the Treehouse Community
Looking to learn something new?
Introduction to Programming Course
At 14:09 of the video, after adding the incrementer to his friends loop and running the script in the browser, he says the loop starts with Nick. Yet if you look at the console, it starts with Michael, then goes to Nick, then back to Michael, then the rest of his friend's names. Is that how the output was supposed to look or did he do something wrong there?
The 1st Michael was from the following code before the for loop:
var friendNumber = 1; console.log(friends[friendNumber]);
That logged Michael then the for loop started with Nick, then Michael, etc...
Each time the page is refreshed it's running all of the script. Not just the newest code he has added.