JavaScript gives us four built-in methods to add and remove items to the beginning and the end of array.
In this post we will examine the pop()
and push()
methods. In my next post I will cover how we can leverage the shift()
and unshift()
methods.