How do I reverse the digits of a number using bitwise?
input:
x = 123;
output:
x = 321;
you also use this function
function myfunction(a){ var x=a.toString(); var y= x.split(""); var z=y.reverse(); var result=z.join(""); return result;
} myfunction(123);