'While using splice and slice in array from where to start cout on string i am little bit confuse about it?

While using splice and slice in array from where to start cout on string i am little bit confuse about it?

ex: `const array=["mango","orange","pineapple","watermelon"]; for splice or slice method from where should start count ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source