#11: Review - missing variable name


#1

I keep getting an error message saying I have a missing variable name. I've gone over this code so many times and I can't find the issue. I'm hoping some fresh eyes will help me solve this problem, thanks in advance! :smile:

Here is my code:

// Write your code below!
for (var = i; i < 5; i++){
console.log(i);
}

var condition = true;
while (condition) {
console.log("Testing, testing...");
condition = false;
}

var condition2 = 0;
do {
console.log("Still testing...");

}
while (condition2);


#2

for (var  = i; i < 5; i++){
         ^
 console.log(i);
}

Close,

But for loops look like this:

for( var i = 0 ; i < 5 ; i++) {

#3

Can't believe I missed that when checking it. This obviously worked, thank you!