Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to push two values in array at once

let arr = [];
arr.push(1);
arr.push(2);
console.log(arr);

result [1, 2]
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #push #values #array
ADD COMMENT
Topic
Name
2+6 =