I am a newbie and Im trying to practice codes with codewars. The problem is I already solve the problem, but it wont accept my codes.
Here's the problem:
Here's my solution:
function descendingOrder(n){
var result =(n.toString().split('').reverse().sort(function(a, b){return b-a}).join(''));
parseFloat(result);
return result;
}
console.log(descendingOrder(12345));
What I tried is of course removing the parameter in function which is 12345 since codewars has already done it.
