11.Review what am I doing wrong here


#1
/// Write your code below!
var said = "didn't said";
var process = 0
var numero= 0
var internalloop=function()
{
while (process < 10)
{
    do 
    {
        for(var i=0;i < 10;i++)
        {
            console.log("You");
        }
        while(numero <5)
        numero++;
    }
    
  }
  console.log(said + "the Magic word");
  process++;
}
internalloop();

/it says unexpected token }/

What[s doing on?


#2

I believe, I'm not positive, but a do/while loop is supposed to go like this:

do{

code blah blah blah

}while(________)

That may be the problem.:smiley:


#3

Oh...so should i use "for ( parameter) { do{ console......} while(condition)} function():


#4

hmm Well as far as i have learned, I think you are mixing do/while loop with for loop....

all you can do is first complete for loop then while and then do/while.....
All the best

key to note:
Its just my opinion.