# ES6: Write Higher Order Arrow Functions = (required) =\> yet unpresented content

**URL:** <https://forum.freecodecamp.org/t/es6-write-higher-order-arrow-functions-required-yet-unpresented-content/308287>\
**Category:** freeCodeCamp Contributors\
**Tags:** contributing\
**Created:** [August 23, 2019, 1:20am UTC](https://forum.freecodecamp.org/t/es6-write-higher-order-arrow-functions-required-yet-unpresented-content/308287 "2019-08-23T01:20:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonatasAndrade](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jonatasandrade/32/120420_2.png) [@JonatasAndrade](https://forum.freecodecamp.org/u/JonatasAndrade)\
**Post date:** [August 23, 2019, 1:20am UTC](https://forum.freecodecamp.org/t/es6-write-higher-order-arrow-functions-required-yet-unpresented-content/308287/1 "2019-08-23T01:20:50Z")

</div>

Hello,

There was I, progressing into Javascript.  
“So, this is an arrow function, awesome” 👍

**Just after finishing:**

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

 let squaredIntegers = [];
 for (let counter = 0; counter < arr.length; counter++)
 {Math.floor(arr[counter]) == arr[counter] && arr[counter] > 0 ? squaredIntegers.push(arr[counter] * arr[counter]) : false }
  
  // change code above this line
  return squaredIntegers;
};
// test your code
const squaredIntegers = squareList(realNumberArray);
console.log(squaredIntegers);

```

**I was greeted by:**

_"loop should not be used_  
_map, filter, or reduce should be used"_

**All those methods were not presented yet.** Indeed, a good coder must be able to do his research, but the restriction of loops really should be in the objective briefing above “Run the Tests”, for clarity’s sake.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 7:58pm UTC](https://forum.freecodecamp.org/t/es6-write-higher-order-arrow-functions-required-yet-unpresented-content/308287/2 "2021-01-17T19:58:49Z")

</div>

Closed on January 17, 2021, 7:58pm UTC


