Answers for "how to make ascending order numbers to descending order number"

0

Sort number in descending order

function solution(n) {
    return parseInt(n.toString().split('').sort((val1,val2) => val2-val1).join(''));
}
Posted by: Guest on July-10-2021

Code answers related to "how to make ascending order numbers to descending order number"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language