ok I understand the challenge requirements completely and solved it but it didn’t work here is my solution
// Only change code below this line
for(let i = 0; i < this.length; i++){
newArray.push(this[i])
callback(newArray[i])
}
// Only change code above this line
Yeah, you need to put the result of the callback into the new array. But
This says, in words
“Push onto the new array this old value that I don’t want.
Then replace the old value that I don’t want with the return value of the callback function.”
Why the extra step? You want the return value of the callback function in the new array, so just put that there instead of the extra step of putting the old value into the new array.