Skip to content

Commit 71b4e33

Browse files
committed
배열 원소의 길이 / 기초
1 parent a2c214b commit 71b4e33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// 문자열 배열 strlist가 매개변수로 주어집니다.
2+
// strlist 각 원소의 길이를 담은 배열을 return하도록 solution 함수를 완성해주세요.
3+
4+
function solution(strlist) {
5+
return strlist.map((v) => v.length);
6+
}

0 commit comments

Comments
 (0)