
์์ด ๋์๋ฌธ์๋ก ์ด๋ฃจ์ด์ง ๋ฌธ์์ด my_string์ด ๋งค๊ฐ๋ณ์๋ก ์ฃผ์ด์ง ๋, my_string์ ๋ชจ๋ ์๋ฌธ์๋ก ๋ฐ๊พธ๊ณ ์ํ๋ฒณ ์์๋๋ก ์ ๋ ฌํ ๋ฌธ์์ด์ return ํ๋๋ก solution ํจ์๋ฅผ ์์ฑํด๋ณด์ธ์.
my_string ๊ธธ์ด < 100| my_string | result |
|---|---|
| "Bcad" | "abcd" |
| "heLLo" | "ehllo" |
| "Python" | "hnopty" |
์ ์ถ๋ ฅ ์ #1
์ ์ถ๋ ฅ ์ #2
์ ์ถ๋ ฅ ์ #3
const solution = (my_string) => my_string.split("").map(a => a.toLowerCase()).sort().join("")