Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript shift

let array = ["A", "B", "C"];

//Removes the first element of the array
array.shift();

//===========================
console.log(array);
//output =>
//["B", "C"]
 
PREVIOUS NEXT
Tagged: #javascript #shift
ADD COMMENT
Topic
Name
9+9 =