Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js add to array

let arr = [1, 2, 3, 4];

arr = [...arr, 5, 6, 7];

console.log(arr);
 
PREVIOUS NEXT
Tagged: #js #add #array
ADD COMMENT
Topic
Name
9+4 =