Since your array is only one level deep you could make a shallow copy or you could find a way to create newArr so that your parameter array is not altered.
You know I got confused, when I searched for slice on MDN I found string.prototye.slice() and didn’t realize it could be called on an array also! This allowed me to create a copy in my var and pass the last test. Thanks!
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
If you want to compare your solution to others, use the Get a hint button on the challenge and there are alternative solutions you can compare yours to. Also, you can probably search older posts using the forum search feature or google the challenge name and find more there.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.