Reverse decimal digits in javascript

后端 未结 14 935
灰色年华
灰色年华 2021-02-05 16:24

How do I reverse the digits of a number using bitwise?

input:

x = 123; 

output:

x = 321; 
14条回答
  •  忘了有多久
    2021-02-05 17:18

    The code block below should do the trick

    
    

提交回复
热议问题