6 lines
145 B
JavaScript
6 lines
145 B
JavaScript
|
function reverse_a_number(n)
|
||
|
{
|
||
|
n = n + "";
|
||
|
return n.split("").reverse().join("");
|
||
|
}
|
||
|
console.log(reverse_a_number(32243));
|