In this javascript tutorial we are learning code about reverse of numbers using javascript language.
Reverse of number
Integer will become integer. 123456 become 654321 & not 123456.00.
Negative number remains negative only after the reverse. ex -1-2-3-4 becomes -4-3-2-1.
Any leading zero is been remove after reverse the number. ex 00123 is becomes 321 & not 32100
reverse function can accept float and integers. Ex 123.456 is become 654.321
write a javscript program to reverse of the number.
output:
0 Comments