array exclude js code example
Example 1: javascript array clear
var cars = ["mazda","honda","tesla"];
cars = []; // clear/empty the array
Example 2: java script removing first three indexes
var indexToRemove = 0;
var numberToRemove = 1;
arr.splice(indexToRemove, numberToRemove);