Review


#1

I created the simplest loops and am getting a syntax error!!!!
Can anyone help me out?
Thanks

`// Write your code below!
for (var i=1; i<11; i++){
//prints numbers 1-10
console.log(i);
}

While loop

var condition=true;
while(condition) {
colsole.log("Hello");
//avoid infinite loops
condition=false;
}

//Do/While loop

//can be false from the start
//do/while runs at lease once

var loopCondition = false;
do{console.log("I'm printing once");
}
while(loopCondition);

`


#2

@mccbjnn,

Have a close look at

colsole.log("Hello");


#3

what is wrong with my code. its showing SyntaxError: Unexpected end of input.

var myNumber = 1;
for (i = 0; i <= 8; i++){
console.log(i);
}
while(myNumber){
console.log("Pavitha");
myNumber = 0;
}
do {
console.log("I'm printed the value");
while(myNumber);
}


#4

@textace92794,

do {
     console.log("I'm printed the value");
 } while(myNumber);