Answers for "push string to empty array javascript"

1

push string to empty array javascript

const emptyArray = [];
emptyArray.push("something");

console.log(emptyArray); // ["something"]
Posted by: Guest on August-22-2021

Code answers related to "push string to empty array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language