DEV Community

Discussion on: JavaScript Series – JavaScript Types Cont. – Part 4

Collapse
 
vickyktk profile image
vickyktk

Well you should avoid to do comparison with 0 & 1 , the condition should always be checked with true and false.