toString()
[...문자열]
sort()
join()
Number()
function solution(n) { return Number([...n.toString()].sort((a, b) => b - a).join('')); }