In the "for" loop, Dave adds +=1 to the i variable, but doesnt put semi-colon at the end of it, yet it still runs. Shouldn't he put semi-colons?
Jason AndersTreehouse Moderator 144,810 Points
statement separators. In a for loop, yes they would be needed for the first two, because they are on the same line and need to be separated, but the parser will automatically insert a semicolon at the end of the line.
There is quite the debate going on about whether the convention should be
pro semicolon or
So, in short, no Dave is not incorrect.
Keep Coding! :)
Marcin Jerwan4,628 Points
in the "For Loops" video, at 03:06 mark, top condition is counter<10, and at the bottom example counter<=10 . is this a simple mistake or is it meaningful?