shift() method removes the first element from an array and returns that removed element.
Note: This method overwrites the original array.
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.