Tell us what’s happening:
I Don’t know what to do so far… This challenge is making me perplexed as if don’t understand this FP… What should i do get HINTS or Re-Take the course !!
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Challenge: Use Higher-Order Functions map, filter, or reduce to Solve a Complex Problem
all those methods return a new array, you are not saving that returned array anywhere, and arr is not being changed
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
First off, don’t use “arr” within the callback functions, it’s super irritating. The callback functions are applied to every element of the array one-by-one, so use a distinct name for them.
Second please read the code and actually explain to yourself, what you are doing, because I don’t know what your goal here is.
For example, map(arr => arr) does a whole lot of nothing and none of your methods creates squares.