Edit This Code:
See Result »
The splice() method adds new elements to an array.
Try it
Result: