Run ❯
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Arrays
The unshift() Method
The unshift() method adds new elements to the beginning of an array: