Syntax | |
| |
The unshift() method adds the arguments to the front of the array as new elements. | |
Existing elements are shifted up to allow room for the new elements. | |
arg1,...argN are elements to be added to the array | |
It returns the length of the array after adding the new elements. | |
The following example adds elements to the Front of an Array Using the unshift() Method. | |
|