Write Higher Order Arrow Functions-- Why it does not pass the test?

Write Higher Order Arrow Functions-- Why it does not pass the test?
0

#1

Tell us what’s happening:

Your code so far


const realNumberArray = [4, 5.6, -9.8, 3.14, 42, 6, 8.34];
const squareList = (arr) => {
 
 "use strict";
  // change code below this line

  const squaredIntegers = arr.filter(x => x > 0 && x%2 === 0).map(x => x*x);
};
// test your code
const squaredIntegers = squareList(realNumberArray);
console.log(squaredIntegers);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/write-higher-order-arrow-functions


#2

You are not returning anything, read the instruction carefully to find out what you need to return. Other than that, your code looks fine.