Prototype This page is part of the Prototype JavaScript framework documentation.
Overview | (...)

The Prototype Array.prototype.push function adds a push method to all present and future Arrays to browsers that do not conform to ECMAScript Edition 3. Most prominently, this is Internet Explorer 5.

No further action on your side required.

syntax


  arr = [47, 11];
  arr.push(8, 15); // returns 4, the new length

The push methods appends one or more elements to the end of an array. The new length of the array is returned.