The JavaScript unshift method can be used to add elements to the beginning of an array.
//Adds 5 at the beginning of the array
var aryTest = [1,2,3,4];
aryTest.unshift(5);
document.write(aryTest);
Related Articles:
JavaScript Push Method – Adding to an Array End