java script removing first three indexes

Java
var indexToRemove = 0;
var numberToRemove = 1;

arr.splice(indexToRemove, numberToRemove);
Source

Also in Java: