Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript array remove first

// example (remove the last element in the array)
let yourArray = ["aaa", "bbb", "ccc", "ddd"];
yourArray.shift(); // yourArray = ["bbb", "ccc", "ddd"]

// syntax:
// <array-name>.shift();
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #javascript #array #remove
ADD COMMENT
Topic
Name
5+1 =