Stuck with count++ in the while loop


#1

Hi there,

So I am stuck with the Javascript unit.4 "Introduction to while loops" section 5. I can't get the code fixed. I get the message: "Oops, try again. Are you logging 'I'm looping!' to the console three times?"

It has to do with the count++ (I believe). So my question is; how do I use count++, so that I don't have to use console.log three times?

Thanks in advance!

Kasper


#2

I'd suggest using a while loop, and just have it increment three times inside of the while loop, so that it goes out of the while loop after the three times and being incremented. (Further information is on the lesson you're currently on.


#3

Thanks! Already solved it.