spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / dhtml / column31
Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

Logo

Array Power, Part I
browser support


The table on this page lists the Array methods supported by each browser, and which of these are included in the ECMAScript Version 3 standard.

More information can be found on these sites:

Netscape: Client-Side JavaScript Reference

Microsoft: JScript Language Reference

ECMAScript: ECMAScript Language Specification

MethodDescriptionNS4+IE4+ECMA ver3
concatJoins two arrays and returns a new array.
joinJoins all elements of an array into a string.
popRemoves the last element from an array and returns that element. 
pushAdds one or more elements to the end of an array and returns the new length of the array. 
reverseTransposes the elements of an array: the first array element becomes the last and the last becomes the first.
shiftRemoves the first element from an array and returns that element 
sliceExtracts a section of an array and returns a new array.
spliceAdds and/or removes elements from an array. 
sortSorts the elements of an array.
toSourceReturns an array literal representing the specified array; can be used to create a new array.  
toStringReturns a string representing the array and its elements.
unshiftAdds one or more elements to the front of an array and returns the new length of the array. 
valueOfReturns the primitive value of the array.

In order for Explorer to conform to ECMAScript version 3, it needs five new methods:

pop(), push(), shift(), splice() and unshift()

Our task is to create these methods for Explorer using the prototype property and the built-in methods available to us.

We'll start with unshift().


Produced by Peter Belesis and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

All Rights Reserved. Legal Notices.
Created: April 26, 2000
Revised: April 26, 2000

URL: http://www.webreference.com/dhtml/column31/2.html