Help troubleshooting failing test

Tell us what’s happening:
I have written a function using filter and map that appears to return the squared integers array. All of my tests are passing except one: " map , filter , or reduce should be used."

I have looked at the given solutions and mine appears to be very similar using only filter and map, but I am unclear on where my error is.

Any insight would be helpful. Thanks!

Your code so far

const squareList = (arr) => {
// Only change code below this line
return arr
  .filter(num => num > 0 && Number.isInteger(num))
  .map(num => Math.pow(num, 2));
// Only change code above this line

const squaredIntegers = squareList([-3, 4.8, 5, 3, -3.2]);

Your browser information:

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

Challenge: Use Higher-Order Functions map, filter, or reduce to Solve a Complex Problem

Link to the challenge:

I just removed the whitespace between arr and .filter as well as before .map and it passed the test

Thanks for the quick reply! I guess something in their testing environment doesn’t like those spaces/formatting. I put them all on one line like you suggested and it was fixed right away.