Answers for "how to push two values in array at once"

1

how to push two values in array at once

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

result [1, 2]
Posted by: Guest on June-01-2021

Code answers related to "how to push two values in array at once"

Browse Popular Code Answers by Language