+ 6
0 is usually false.
8th Jul 2019, 6:01 AM
Sonic
Sonic - avatar
+ 5
1. "The Boolean value of 0 (zero), null, undefined, empy string is False". https://www.sololearn.com/learn/JavaScript/1129/ 2. The "continue" statement breaks one iteration in the loop and continues with the next iteration. In other words, "count++;" is always skipped.
8th Jul 2019, 5:08 AM
Diego
Diego - avatar
+ 4
Diego so js is kinda like Ruby, Ruby treats every object except false and nil as true..yeah i think so it goes
8th Jul 2019, 5:12 AM
Mind To Machine đŸ’»đŸ•†
Mind To Machine đŸ’»đŸ•† - avatar
+ 3
Mofey At the beginning, "count" equals 0. Since "count++;" is always skipped, its value remains as 0.
8th Jul 2019, 5:16 AM
Diego
Diego - avatar
+ 2
this does not apply in javascript, values for boolean must be true or false. btw 0 means false in the other languages like c,c++ etc not true
8th Jul 2019, 5:07 AM
Mind To Machine đŸ’»đŸ•†
Mind To Machine đŸ’»đŸ•† - avatar
0
Yes
19th Jul 2019, 4:31 PM
PAAVAN SRI SAI
PAAVAN SRI SAI - avatar