I am trying to append to an array in Javascript is there any way to do this?
Yes its simple you can use push() to do this
// initialize array var arr = [ "Hi", "Hello", "nishant" ]; // append new value to the array arr.push("Hola"); // display all values for (var i = 0; i < arr.length; i++) { alert(arr[i]); }