how to check if all elements of an array are even numbers in javascript code example Example: find even numbers in an array javascript arr.filter(num => num % 2)