3 ms·
Except it also has bitwise operators which is definitely weird.
by recursive 6y ago
Except it also has bitwise operators which is definitely weird.
- ygra 6y agoAnd those bitwise operators are defined to convert the number into a 32-bit signed integer as part of the process. Which is why foo | 0 is a way of converting a number to an integer (as long as it's not too large ...).