'Review' need help to review my script


Hi Guys,

can someone help me to check with the below code, it didn't print out the for statement

var count = 0;

for (var i = 0; i < count; i++) {
    console.log(i + "for statement");

var condition = true;

while(condition) {
    console.log("while condition is true");
    condition = false;

var conditionTwo = false;

do {
    console.log("do condition is false");
} while(conditionTwo);



make sense, i < count, both i and count are zero, the condition is false, the loop exit


oh great advise! thanks a lot, @stetim94!

i just removed the very first variable 'count = 0;'
as you said both are zero in the for loop, so it isn't a necessary var...

and replace

for (var i = 0; i <= 0; i++) {
console.log("for statement");

it works now!

thank you!