Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to flip a Number in javascript

function reverse_a_number(n)
{
	n = n + "";
	return n.split("").reverse().join("");
}
console.log(reverse_a_number(32243));
 
PREVIOUS NEXT
Tagged: #flip #Number #javascript
ADD COMMENT
Topic
Name
7+6 =