I see that you have provided no arguments for this.
And one more thing I noticed that you created a variable newArr and returned it. But never modified it. So the newArr would be equal to an empty array
I just read the challenge…It says you to store the updated elements to the newArr so removing the element will be of no use. Instead tru pushing the values to the new array
Actually the problem IS with shift() as it deletes the first element of the array, where you’re actual goal is to remove the index at which the element exists.
You’ll learn better way to do this in future lessons, but for now you can create a newArr and add the arrays that DONT contain the given elem.
Hint: if the current array does NOT contain elem, add it to the new Array, thus ending up with an array that has those arrays removed.