숫자만 필터링하기
function filter_list(l) {
// Return a new array with the strings filtered out
const arr = [];
for(let i= 0; i < l.length; i ++){
if(typeof( l[i]) == 'number') {
arr.push(l[i]) ;
}
}
return arr;
}
function filter_list(l) {
return l.filter(v => typeof v == 'number')
}