1var cars = ['mazda', 'honda', 'tesla'];
2var telsa=cars.pop(); //cars is now just mazda,honda
1// push append the element at the end of the array
2
3array = [1,2,3]
4array.push(4) // [1,2,3,4]
5
6// pop will remove the element from the end of the array.
7array.pop() // [1,2,3]
8