What does a tilde do when it precedes an expression?
~ is a bitwise operator that flips all bits in its operand. For example, if your number was 1, its binary representation of the IEEE 754 float (how JavaScript treats numbers) would be… 0011 1111 1111 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 So ~ converts its operand to … Read more