Table of contents Home page
Execute this code
var a = [1, 2, 3] alert("The array has " + a.length + " elements.") alert("A new value has been added at the end of the array, which has now " + a.push(4) + " elements.")