Edit: This question is out of date as the Polyfill example has been updated. I\'m leaving the question here just for reference. Read the correct answer for usef
If you run this test, Math.floor will do the same. Those hacks should be avoided if you want to understand your own code in a month or so.
var a=3.6, b = a >>> 0; console.log(b); console.log(Math.floor(a));