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.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #push #javascript
ADD COMMENT
Topic
Name
8+9 =