scrimba
Learn Modern JavaScript
Write Higher Order Arrow Functions
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Write Higher Order Arrow Functions
AboutCommentsNotes
Write Higher Order Arrow Functions
Expand for more info
index.js
run
preview
console
const realNumberArray = [4, 5.6, -9.8, 3.14, 42, 6, 8.34, -2];

const squareList = (arr) => {
const squaredIntegers = arr;
return squaredIntegers;
};


const squaredIntegers = squareList(realNumberArray);
console.log(squaredIntegers);
Console
[
4
,
5.6
,
-9.8
,
3.14
,
42
,
6
,
8.34
,
-2
]
,
index.html
-3:34