Using the optional arguments in an iterator to include the index or the entire array

Hi, one of the tasks in the iterator review is to use the optional arguments of (index, array) in an iterator: https://www.codecademy.com/courses/introduction-to-javascript/lessons/javascript-iterators/exercises/iterators-review

I want to:

  1. list only the even numbers in the array below;

  2. use the optional arguments ‘index’ & ‘array’ to list the index number of the even number in the original array and to just list the whole array

Here’s my code:

const number = [‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’];

const evenNumbers = number.filter((num, index, array) => {return (num % 2 === 0)}, index, array);

console.log(evenNumbers);

Where’s my error?