Practice makes Perfect -- need explanation


#1

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

why count = 0 ? what the means of 0 ?

```

var count = 0

var loop = function(){
while(count<3){
console.log( “I’m looping!”);
count++;
}
};

loop();


#2

var count = 0

set count=1 or count=2 and run your code

now check the difference


#3

is 0 means true …?


#4

No,0 means false and 1 means true.


#5

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