Review..what is wrong?


#1

this is my code for (var i=80; i>8 i-=8){
console.log(i);}

var giasoy=true;
while (giasoy){
console.log("giasoykaiesena");
giasoy=false;}

var alloena=false;
do{
console.log("sosto?");
} while (alloena);// Write your code below!
what is the mistake?


#2

@vasilisbil04,

for ([initialization]; [condition]; [final-expression]) {
   //statement
}

In your FOR-loop you are missong the semi-colon-;
which is the separator between the [condition] and the [final-expression]

the for-loop:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for

the while-loop:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/while

the do-while-loop:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/do...while


#3

thank you that is the problem