how to ckear an array in js code example
Example 1: js delete all array items
A.splice(0,A.length)
Example 2: empty array javascript
// set array
arr = [1,2,4];
// empty array
arr = [];
A.splice(0,A.length)
// set array
arr = [1,2,4];
// empty array
arr = [];