Tricks

Check if odd

In Binary all odd numbers will have a 1 at bit 0 so in order to check this we just need to and the variable with a mask of 0x1

let someVar = 35;

someVar & 0x1 #=> 1