정수 내림차순으로 배치하기
const sortHelper = (a, b) => b - a; const solution = (n) => { return parseInt( n .toString() .split("") .map((char) => parseInt(char)) .sort(sortHelper) .join("") ); };