Skip to content

Commit 12ffb31

Browse files
committed
중복된 숫자 개수 / 기초
1 parent a2159fd commit 12ffb31

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
function solution(array, n) {
2+
var answer = [];
3+
4+
array.forEach((num) => {
5+
if (num === n) {
6+
answer.push(num);
7+
}
8+
});
9+
10+
return answer.length;
11+
}

0 commit comments

Comments
 (0)