11/11 syntax error: unexpected token var


#1

// Write your code below!
var text = 0

for(var i = 0; var i < 11; var i++){
console.log(i);
}

var text = 1;
while(text){
console.log("Looping more!");
text = 0;
}

do{
console.log("..and more!");
}while(text);


#2

Don't call an aleady declared variable with 'var'. So in your code replace

for(var i = 0; var i < 11; var i++){
console.log(i);
}

by

for(var i = 0; i < 11; i++){
console.log(i);
}

Should work


#3

Did the trick, thanks!