CODE CHALLENGES: INTERMEDIATE JAVASCRIPT Fix The Broken Code!

I’m unsure how the code sends an 8 to the results array without sending the code as expected to the new array. Also, why is the console not throwing an error of undefined ‘number’?

I can figure out what is wrong with the code but not how the code is still executing.

Welcome to the forums.

What lesson is this? Please provide a link and be as detailed as possible as to what the issue is.
And, please read the specific guidelines for bug reporting here: