Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js reverse number

const reversedNum = num => parseFloat(num.toString().split('').reverse().join('')) * Math.sign(num)
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #js #reverse #number
ADD COMMENT
Topic
Name
4+6 =