js delete all array items

JavaScript
A = [];A.splice(0,A.length)A.length = 0
Source

Also in JavaScript: