scrimba
Advanced JavaScript I
JS 88 - Exercise: Filter through function
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

JS 88 - Exercise: Filter through function
AboutCommentsNotes
JS 88 - Exercise: Filter through function
Expand for more info
index.js
run
preview
console
// https://javascript.info/closure
// Filter through function
/* .. your code for inBetween and inArray */
let arr = [1, 2, 3, 4, 5, 6, 7];

console.log( arr.filter(inBetween(3, 6)) ); // 3,4,5,6

console.log( arr.filter(inArray([1, 2, 10])) ); // 1,2
Console
ReferenceError: sayHi is not defined (/index.js:15)
,
index.html
-0:44