Javascript – Is there a way to update only one property of an object while keeping the others the same?
I am trying to make a basketball scoreboard app in React and have each team as it's own object with score, field goals made, and field goal attempts as properties. I have buttons that increment all of these properties and…