how to remove from list at index in javascript code example
Example 1: remove first element from array javascript
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.shift();
Example 2: js delete all array items
A.length = 0
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.shift();
A.length = 0