using unshift() method we can add new element to the beginning of an array, and it returns the new length of the array
var skills = ["javacript", "jquery", "Extjs"]; skills.unshift("php")
o/p array: php, javascript, jquery, extjs and it returns the length as "4"
using unshift() method we
Wed, 06/30/2010 - 20:01 — adminusing unshift() method we can add new element to the beginning of an array, and it returns the new
length of the array
var skills = ["javacript", "jquery", "Extjs"];
skills.unshift("php")
o/p array: php, javascript, jquery, extjs
and it returns the length as "4"