remove from array using index code example Example: javascript array clear var cars = ["mazda","honda","tesla"]; cars = []; // clear/empty the array