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.
2 parents f38f0d4 + 7a21a5b commit 931a254Copy full SHA for 931a254
sgoldenbird/level_0/배열_두_배_만들기.js
@@ -0,0 +1,3 @@
1
+function solution(numbers) {
2
+ return numbers.map((num) => num * 2);
3
+}
sgoldenbird/level_0/중복된_숫자_개수.js
@@ -0,0 +1,11 @@
+function solution(array, n) {
+ let count = 0;
+
4
+ for (let el of array) {
5
+ if (el === n) count++;
6
+ }
7
8
+ return count;
9
10
11
+// filter/reduce로 푸는 것도 가능
0 commit comments