Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js array push

const arr = ["foo", "bar"];
arr.push('baz'); // 3
arr; // ["foo", "bar", "baz"]
Source by .www.developer.mozilla.com #
 
PREVIOUS NEXT
Tagged: #js #array #push
ADD COMMENT
Topic
Name
5+2 =