Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace last element of array javascript

var array = [10,11,12,13,14,15,16,17];
array.splice(-1,1);
console.log(array);
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #replace #element #array #javascript
ADD COMMENT
Topic
Name
4+2 =