Asynchronous Programming – Callback

I am learning JavaScript and I am at Asynchronous and Callbacks. The problem is:
Create a function that returns true if the number is an even number and false if it is an odd number and assign this function to the variable callback on line 1 below.

Then write a function filterEvens that accepts two arguments. The first argument passed will be an array of integers. The second argument will be your callback function that you created above. Your filterEvens function should return an array of only the even numbers and should use your callback function to decide if the number you are iterating over are even.

Here is what I have so far…

`let callback = (number) => {
  // Check if the number is even
  return number % 2 === 0;
};

function filterEvens(array, callback) {
  // Use the filter method to create an array of even numbers
  return array.filter(callback);
}

// Example usage:
const numbers = [1, 2, 3, 4, 5, 6];
const evenNumbers = filterEvens(numbers, callback);
console.log(evenNumbers); // Output: [2, 4, 6]

What I don’t understand is that it is saying I have passed:
returns an empty array when passed an empty array‣
returns an array of only even numbers‣
returns an empty array when all numbers are odd‣
should return true only for even numbers
But it does not utilize the callback function to filter out even numbers.

`