Hello,
There are many ways to remove an element from the array. It depends upon the scenario that which element you want to remove from an array. If you want to remove an element from begining then you can use shift() function. Suppose you want to remove element from the end then you can directly use length property. In case you want to delete an element from any specific position then you can use splice() function. Following is the example of every scenarios.
E.x.
// Remove element from end
var arr = [1, 2, 3, 4, 5, 6];
arr.length = 4;
console.log( arr );
// remove element from beginning
var arr = [1, 2, 3, 4, 5, 6];
arr.shift();
console.log( arr );
// Remove element from specific Position
var arr = [1, 2, 3, 4, 5, 6];
arr.splice(2,2);
console.log( arr );
// splice has two arguements. First is the index from where you want to start and the second is the number of elements you want to remove.