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 developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #array #push
ADD COMMENT
Topic
Name
4+4 =