What will 6 > 0 && 6 % 2 == 0` evaluate to?
I have answered false, because the left side will be true and 0 means false so that
true==0 ->false
hi!
6 > 0 && 6 % 2 == 0
true && 0 == 0 (0==0 is true)
true && true
true
there’s a difference between false and incorrect! good luck
I thought that 0 means false in ruby like other languages but I have known that 0 is true also in ruby.
Thanks very much for help