Javascript – I can't figure out what's going on. I add an object to the array, it is added, but the old data copies the values from the new object
I can't figure out what's going on. I add an object to the array, it is added, but the old data copies the values from the new object. This is the first time I've encountered this. Here is the code…