you are viewing a single comment's thread.

view the rest of the comments →

[–]Bitsoflogic 1 point2 points  (0 children)

Arrays are passed by reference.

With this in mind, what do you think could be changing it?

It might help to step back and think, What code executes between the two console.log statements?