Answers for "how to empy an array js"

2

empty array js

// define Array
let list = [1, 2, 3, 4];
function empty() {
    //empty your array
    list = [];
}
empty();
Posted by: Guest on June-01-2020

Code answers related to "how to empy an array js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language