We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dc19de commit b53d096Copy full SHA for b53d096
JooKangSan/배열/배열의 원소 길이.js
@@ -0,0 +1,11 @@
1
+function solution(strlist) {
2
+ var answer = [];
3
+ for(let i=0; i<strlist.length; i++){
4
+ answer[i]=strlist[i].length
5
+ }
6
+ return answer;
7
+}
8
+
9
10
+ return strlist.map(str => str.length);
11
0 commit comments