JavaScript array push and pop methods
In this video we will discuss push() and pop() methods in JavaScript. Along the way we will also discuss shift() and unshift() methods. Let us understand these methods with examples. In the example below, we are populating myArray using a for loop and the array index.