Edit This Code:
See Result »
The splice() methods can be used to remove array elements.
Try it
Result: