Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delete array element

const arr = [7, 8, 5, 9];
delete arr[3];
console.log(arr); //[7, 8, 5, empty] 
delete operator removes only an element; Not the space allocated to it.
Source by love2dev.com #
 
PREVIOUS NEXT
Tagged: #delete #array #element
ADD COMMENT
Topic
Name
8+7 =