Math.floor vs Bitwise OR.
const num = 1234.5678;
Initializing...
Math.floor(num);
num | 0;
~~num;
parseInt(num, 10);
You can edit these tests or add more tests to this page by appending /edit to the URL.