We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a76e485 commit d63bdedCopy full SHA for d63bded
programmers/level0/외계행성의 나이.js
@@ -0,0 +1,12 @@
1
+// 외계행성의 나이 :120834
2
+// https://school.programmers.co.kr/learn/courses/30/lessons/120834
3
+
4
+// solution 1
5
+function solution(age) {
6
+ return [...String(age)].map((v) => String.fromCharCode(+v + 97)).join("");
7
+}
8
9
+// solution 2
10
11
+ return [...String(age)].map((v) => "abcdefghij"[v]).join("");
12
0 commit comments