Answers for "javascript append to array stack overflow"

2

javascript append to array stack overflow

// initialize array
var arr = [
  "Hi",
  "Hello",
  "Bonjour"
];

// append new value to the array
arr.push("Hola");

console.log(arr);
Posted by: Guest on February-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language