[JS] 프로그래머스 Lv.1: 정답률 80% - 문자열 내림차순으로 배치하기

ahyes·2022년 12월 18일
0
post-thumbnail

안녕하세요.
이어서 정답률 80% 문제를 풀어보겠습니다.

function solution(s) {
    return s.split('').sort().reverse().join('');
}
profile
티스토리로 이사갑니다. https://useyhnha.tistory.com/

0개의 댓글