Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

push javascript

let fruit = ['apple', 'banana']
fruit.push('cherry')
console.log(fruit) // ['apple', 'banana', 'chery']
Source by .www.developer.mozilla.com #
 
PREVIOUS NEXT
Tagged: #push #javascript
ADD COMMENT
Topic
Name
5+3 =