Trying to make my own for loop in an actual console


#1

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) {
    console.log(i);
}

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


#2

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


#3

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


#4

Everyone was at one time!