Course · Section 17: Modern JavaScript Development: Modules, Tooling, and Functional · Lecture 294: Declarative and Functional JavaScript Principles
Implement `updateScore(state, points)` returning a new state object with `score` increased by `points`, without mutating the original.
+ 1 hidden test run on Submit.
Spreading into a new object with an updated score keeps the update immutable.
Run your code to see results.