Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js shift method

var arr = ["f", "o", "o", "b", "a", "r"]; 
arr.shift(); 
console.log(arr); // ["o", "o", "b", "a", "r"]
 
PREVIOUS NEXT
Tagged: #js #shift #method
ADD COMMENT
Topic
Name
1+2 =