Manipulating Arrays
Learn how to add and remove elements from an array.
We'll cover the following
Adding elements to the beginning or end
You can add elements to the beginning and to the end of the array:
Push
adds elements to the end of the arrayUnshift
adds elements to the beginning of the array
Get hands-on with 1200+ tech skills courses.