How do I reverse the digits of a number using bitwise?
input:
x = 123;
output:
x = 321;
If you wanted to make a simple reversal:
var x = 123; var y = x.toString(); var z = y.split("").reverse().join(""); var aa = Number(z); document.write(aa);
http://jsfiddle.net/jasongennaro/gV39e/