Find the First Even Number
Use the find method on the provided array to return the first even number. If there is no even number in the array, the result should be undefined..
Hint: You can check if a number is even by using the modulus operator:
Hint: You can check if a number is even by using the modulus operator:
num % 2 === 0
.Premium
JavaScript
Console