function solution(num_list) {
let even = num_list.filter((num) => num % 2 ===0).length
let odd = num_list.length - even;
return [even, odd]
}
function solution(num_list) {
const evenLength = num_list.filter(n => n % 2 === 0).length;
return [evenLength, num_list.length - evenLength];
}