Course · Section 17: Modern JavaScript Development: Modules, Tooling, and Functional · Lecture 294: Declarative and Functional JavaScript Principles
Implement `addItemPure(arr, item)` returning a new array with `item` appended, without mutating the input. This is a pure function.
+ 1 hidden test run on Submit.
Returning a new array keeps the function pure: same input, same output, no side effects.
Run your code to see results.