I misread the comment I was answering to and thought they wrote that binary and with one is 0 for odd numbers, which in hindsight is not what's written there.
I then corrected that by saying that and with 1 is always true for odd numbers and falls for even numbers. I did not claim that this makes the function true, just that the binary logic was wrong, because I misread.
View all comments
Show parent comment
3
u/justaregularwebdev Mar 05 '26
What do you mean? 1&1 == 1 which would then return true from isEven, which is not right. Either I'm missing something or you're baiting...