Create a function filterArray that returns only even numbers from an array using filter().

Output: