In the following code example I try to update an array. I console.log() before the change is supposed to have happened and after. But BOTH console.log()s print the updated v