clear array on a variable code example
Example 1: how to make array empty
A.length = 0
Example 2: empty array javascript
// set array
arr = [1,2,4];
// empty array
arr = [];
A.length = 0
// set array
arr = [1,2,4];
// empty array
arr = [];