Booleans Quiz (what is wrong with my answer?)

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 :slight_smile:

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 :slightly_smiling_face: