function solution(array, n) {
return array.filter(item => item === n).length;
}
function solution(array, n) {
var answer = 0;
for(var i = 0; i < array.length; i++){
if(array[i] == n){
answer++
}
}
return answer;
}
function solution(array, n) {
return array.filter(v=>v===n).length;
}
function solution(array, n) {
var answer = array.filter((number) => number === n).length;
return answer;
}