The shift method allows you to remove the first element in an Array - it will also return the removed element.
In this video we see it in action.
For your reference:
https://developer.mozilla.org/en-US/d...
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
On this page of the site you can watch the video online Array 'shift' method in Javascript (Array.prototype.shift) with a duration of hours minute second in good quality, which was uploaded by the user dcode 24 December 2017, share the link with friends and acquaintances, this video has already been watched 2,021 times on youtube and it was liked by 32 viewers. Enjoy your viewing!