Trying to show the difference between Slice and Splice.
Quick Notes:
splice("index from", "How many items")
slice("index from", "index to")
splice changes reflects on original array
slice changes doesn't reflects on original array
splice result need not to assign to new variable
slice result needs to assign to new variable
splice used to add/remove
slice used to copy
Code: https://playcode.io/644401/
Reach US:
Facebook: / studybox-112247723663110