Get stuck of Basic Data Structures: Iterate Through All an Array's Items Using For Loops

Tell us what’s happening:

I did not understand what was required of the challenge. Could you explain and simplify for me?


function filteredArray(arr, elem) {
let newArr = [];
// Only change code below this line

// Only change code above this line
return newArr;
}

console.log(filteredArray([[3, 2, 3], [1, 6, 3], [3, 13, 26], [19, 3, 9]], 3));

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:83.0) Gecko/20100101 Firefox/83.0.

Challenge: Iterate Through All an Array’s Items Using For Loops

Link to the challenge:

your function has two parameters, one is an array of arrays, the other a number

you need to remove the subarrays containing the number and then return the arrary without those