I am used to if statements having a condition where ( x < y ) or ( x == y ). But in cases where there is no operator, what does the if statement check exactly? i.e. in th
in some languages the predicate really has to return a boolean. In javascript this isn't the case.
Some case like 0 or false (there might be others) are false, the rest is true