In general push() is faster than unshift() because in push we just have to add an element add the end of the array which is just a single operation but in unshift() all the elements of the array would have to be shifted by 1 index to accommodate the new element