Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

empty array js

// define Array
let list = [1, 2, 3, 4];
function empty() {
    //empty your array
    list = [];
}
empty();
Source by www.jstips.co #
 
PREVIOUS NEXT
Tagged: #empty #array #js
ADD COMMENT
Topic
Name
9+6 =