Dillion Megida wrote
Array pop(), push(), shift() and unshift() Methods in JavaScript
These are JavaScript methods that manipulate contents of arrays in different ways. In simple words, pop() removes the last element of an array push() adds an element to the end of an array shift() removes the first element unshift() adds an element to the beginning of the array Let’s look at the methods in full. […]
January 7, 2020 in Code examples & Javascript