pop array data from first in js code example
Example 1: js remove first item
let myArray = [1, 2, 3, 4, 5];
let removedElement = myArray.shift();
Example 2: javascript remove first item from array
type answer
let myArray = [1, 2, 3, 4, 5];
let removedElement = myArray.shift();
type answer