3/14 For or while


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/javascript-beginner-en-qDwp0/0/3?curriculum_id=506324b3a7dffd00020bf661

<In what way does your code behave incorrectly? Include ALL error messages.>
My code keeps coming back saying “Oops, try again. There was a problem with your syntax. SyntaxError: missing variable name” I can’t understand what they mean. Help!

```

// Write your loop below!
for (var 1 = i; i < 11; i++) {
console.log(“Great job!”);
}
var myName = true
while (myName.length < 6) {
console.log(myName === “Abri”);
myName = false;
}

<do not remove the three backticks above>

#2

this line:

for (var 1 = i; i < 11; i++)

you want to assign the variable i to number a number (1)? I would personally swap this. I would assign a value of one, to a variable called i

In your while loop, why use length? myName holds a Boolean value, so you can do:

while (myName){

and why do a comparison inside a console.log? I would just log a string to the console:

console.log("Arbi");