alert(‘Hello World! ‘);
}) ( );
The shift() method changes the original array.
The shift() method returns the shifted element.
var arr= [ “AngularJS”, “Node. js”, “JQuery”];
var result=arr. shift();
//output: Angular JS