Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to emty an array in javascript

if it's you created it with constant 
>> arr.splice(0, arr.length);

if you created it with let 
>> A =[];
 
PREVIOUS NEXT
Tagged: #emty #array #javascript
ADD COMMENT
Topic
Name
1+9 =