javascript array clear

JavaScript
A = [];var cars = ["mazda","honda","tesla"];
	cars = []; // clear/empty the array
Source

Also in JavaScript: