Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript clear an array

let arr = [3.14, 7];

arr = [];//make sure there is no other reference
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #clear #array
ADD COMMENT
Topic
Name
4+1 =