Destructuring with the Spread Operator

destructuring in Javascript using spread operator, and it's comparison with destructuring using the rest parameter

Let’s create an array that contains the last four characters of another array:

Get hands-on with 1400+ tech skills courses.