Stuck at Write Higher Order Arrow Functions

I don’t understand why this code doesn’t work


const realNumberArray = [4, 5.6, -9.8, 3.14, 42, 6, 8.34, -2];
const squareList = (arr) => {
  "use strict";
  // change code below this line
   const squaredIntegers = arr.filter((realNumberArray) => realNumberArray > 0 && realNumberArray % 2 == 0).map(realNumberArray => [realNumberArray ** 2]);
  // change code above this line
  return squaredIntegers;
};
// test your code
const squaredIntegers = squareList(realNumberArray);
console.log(squaredIntegers);

Your browser information:

realNumberArray > 0 && realNumberArray % 2 == 0

This is filtering your array to only positive even numbers, rather than positive real numbers.

If you had an array like [1,2,3] that map() makes it [[1], [4], [9]] - but you don’t want a multidimensional array

Thank you very match from your answer! All it worked!