Let’s explore Slice(), Splice() & Spread Syntax(…) in JavaScript
I came across this freeCodeCamp challenge and got stuck for some time thinking about how I could find a way to solve it. They already mentioned solving using Slice & Splice. I was confused at that time when to use Slice and when to use Splice.
Here, ...
freecodecamp.org4 min read