I assign oldScore to newScore.
Later on when I update the newScore object, the changes are reflected to oldScore, can someone assist?
The changes made to newScore should not be reflected to oldScore. newScore and oldScore are two distinct and different objects.
words.newScore = Object.assign( {}, words.oldScore );
Thank you