Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

empty array javascript

let myArray = [12 , 222 , 1000 ];  
myArray.length = 0; // myArray will be equal to [].
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #empty #array #javascript
ADD COMMENT
Topic
Name
1+4 =