https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/write-higher-order-arrow-functions
Okay so in the above challenge, it wants me to only display elements of the array which are positive integers.
All I have done so far for the part of code which should be edited as mentoned per comments is :
const squaredIntegers = (arr) => ...
I have no clue how to do this with the content taught so far. I have done each tutorial in the order FCC has set out the course. How am I supposed to get started with this using what has been taught so far?
Do a research about filter
and map
method.
The curriculum do not mention any of that before this lesson I think, so it’s ok to feel lost with this challenge. By the way, if you don’t feel too confident with arrow functions, I’d also advise you to take a look at another resource for this matter.
1 Like
Ah that’s a shame, had me confused for a good while.
If anyone else comes across same issue, I used
to help, really good explanation for filter
Thanks Gilbert