diff --git a/Programmers/exam39.js b/Programmers/exam39.js new file mode 100644 index 0000000..41aa0ee --- /dev/null +++ b/Programmers/exam39.js @@ -0,0 +1,3 @@ +function solution(num_list) { + return [num_list.filter((n) => n % 2 === 0).length, num_list.filter((n) => n % 2 !== 0).length]; +}