Where does it came from?


#1


https://www.codecademy.com/courses/javascript-beginner-en-ASGIv/2/1?curriculum_id=506324b3a7dffd00020bf661

I don't know why did appear "2" at the end of my result???
but generally it passes me through another excercise.

for(i=0;i<3;i++){
    console.log("It's OK!");
}
var c=0;
while(c<3){
console.log("Now!, It's OK!");
c++;
}


#2

2 is a result of c++; in last iteration of while loop.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.