Solution 2 Array Item using slice

Continuing the discussion from freeCodeCamp Challenge Guide: Copy Array Items Using slice():


  arr = arr.slice(2, -2)  // Slice from the back using -2
1 Like

You can post solutions that invite discussion (like asking how the solution works, or asking about certain parts of the solution). But please don’t just post your solution for the sake of sharing it.
If you post a full passing solution to a challenge and have questions about it, please surround it with [spoiler] and [/spoiler] tags on the line above and below your solution code.

1 Like

Wit time I will get use to it

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.