How to append something to an array?
Use the Array.prototype.push method to append values to the end of an array: // initialize array var arr = [ “Hi”, “Hello”, “Bonjour” ]; // append new value to the array arr.push(“Hola”); console.log(arr); You can use the push() function to append more than one value to an array in a single call: // initialize array … Read more