Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript array remove last

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

// syntax:
// <array-name>.pop();
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #array #remove
ADD COMMENT
Topic
Name
3+4 =