function solution(n) {
// return parseInt((n+"").split("").sort().reverse().join(""));
// let answer = (n+"").split("").sort().reverse().join("");
// console.log(typeof(answer), answer);
// return parseInt(answer);
let answer = parseInt((n+"").split("").sort().reverse().join(""));
// 정수화(문자화.배열화.정렬.뒤집기.합치기
console.log(typeof(answer), answer);
return answer;
}
function solution(n) {
const newN = n + "";
const newArr = newN
.split("")
.sort()
.reverse()
.join("");
return +newArr;
}