Write Higher Order Arrow Functions1

@Klaudia First you’ll want to filter() positive integers (fractions are not integers). Then, once you have an array of these integers, you can use map() to square each integer and return the result.

Note: it is possible to chain functions like arr.filter().map();.

Does that help? I had trouble with this one when I first came across it. You can see my thoughts about it in this forum topic reply.

1 Like