Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

What is array.push in javascript

							An example of Array.push

let arr = ['abc', 'def'];
console.log(arr); // -> [ 'abc', 'def' ]

arr.push('ghi');
console.log(arr); // -> [ 'abc', 'def', 'ghi' ]
Source by .www.developer.mozilla.com #
 
PREVIOUS NEXT
Tagged: #What #javascript
ADD COMMENT
Topic
Name
9+9 =