DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript prepend string to array
const names = ["Bob", "Cassandra"] names.unshift("Alex") names === ["Alex", "Bob", "Cassandra"]
PREVIOUS
NEXT
Tagged:
#javascript
#prepend
#string
#array
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit