Course · Section 3: JavaScript Fundamentals – Part 2 · Lecture 41: Basic Array Operations (Methods)
Implement `addEnds(arr, first, last)` returning a new array with `first` prepended and `last` appended.
+ 1 hidden test run on Submit.
Spreading the array between the two new values builds a new array without mutation.
Run your code to see results.