Write Higher Order Arrow Functions..(_)

Tell us what’s happening:

How in the world do i approach this.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 11151.113.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.127 Safari/537.36.

Link to the challenge:

it seems to be nothing like the last two challenges

1 Like

This challenge may be a bit more advanced than the others. This section of the curriculum is considered by many to be too early, you can return to this later if you find it too hard.

My advice would be to read carefully how map(), filter() and reduce() work on the documentation, and figure out which ones you need to solve the challenge, and how to use them.

I will just remind you you can chain them: arr.filter(...).map(...)
In this case map() is called on the array returned by the filter() method


I’m stuck too in this question !!!

At least you guys need to tell us in the lesson that we have to find out ourself about these three functions :frowning:

I thought I forgot or miss something on your class.

But no, it’s totally new,

So please insert some guidelines, such as, search on MDN web docs to find out yourself about these functions, and we newbie can get that idea, and we dont need to create a topic to ask about it,

There have been some delays in updating the challenges to last version, but this has been done for a few months, it just needs to be deplyed to production. Hopefully they will manage soon!

1 Like

Tell about 3 functions map() , filter() and reduce() at that moment is too hard for newbies like us,

At least you guys need 1 lesson about them before this lesson,

And I saw many hard lessons before the easy lessons, it make newbies confused a lot,

For Example :

This one : https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/record-collection/

is harder than this one :

Please take a look and fix it,

The record collection one is a logic thing, you don’t need any new knowledge, but to put together the things from previous lessons

But if you think it is an issue you can open an issue on GitHub, FreeCodeCamp is open source and user powered

1 Like