Trying to make my own for loop in an actual console


Ok so I was trying to make my own for loop in the console of my web browser (Firefox press F12) from what I learned. However it just kept coming back us undefined. I actually copied a for statement from the actual lesson(from the starting the for loop section):

 for (var i = 5; i < 11; i = i + 1) {

and it still came back undefined. Is there some kind of definition I'm missing here?


I've just tried this in Firefox and this is what I see:


I checked my console. Didn't realize I didn't have all logs up.
Yep I'm a newb. :stuck_out_tongue:


Everyone was at one time!