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