DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Add an item to the beginning of an Array
let newLength = fruits.unshift('Strawberry') // add to the front // ["Strawberry", "Banana"]
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#Add
#item
#beginning
#Array
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit