Functionality of arrays

I think you are having the same problem as in this post. The array is changing values before it is logged, and the log function only has a reference, not a copy of the variable.

4 Likes