Question: 1. what is the difference between unshift() and pop() method in javascript?
Answer: what are the differences between unshift() and push() methods in javascript? Both the methods are used to add elements to the array. But the only difference is unshift() method adds the element at the start of the array whereas push() adds the element at the end of the array.