JSFiddle - React, Tailwind, and code Playground

by Evgeniy Kvasyuk

TypeScript

/* Your task is to make a function that can take any non-negative integer as an argument and return it with its digits in descending order. Essentially, rearrange the digits to create the highest possible number. (example: 34598 -> 98543, 735 -> 753) */

function(num: number) {

}