Ad
Code
Diff
  • const returnAscending = (...args) => args.sort(function(a,b){return a-b }).join('');
    • function returnAscending(n){
    • return +(n+'').split('').sort(function(a,b){return a-b }).join('');
    • }
    • const returnAscending = (...args) => args.sort(function(a,b){return a-b }).join('');