Arrayobjects can be created using literal notation.
array(1)creates a new array with
concatjoins two arrays and returns a new array.
popremoves the last element from an array and returns that element.
pushadds one or more elements to the end of an array and returns that last element added.
shiftremoves the first element from an array and returns that element
unshiftadds one or more elements to the front of an array and returns the new length of the array.
sliceextracts a section from an array and returns a new array
spliceadds and/or removes elements from an array and returns the removed elements.
sortnow works on all platforms. It no longer converts undefined elements to null; instead, it sorts them to the high end of the array.
arityproperty indicates the number of arguments expected by a function.
arguments.calleeproperty provides information about the invoked function.
Lockclass allows safe sharing of information with multiple incoming requests.
Numbernow produces NaN rather than an error if x is a string that does not contain a well-formed numeric literal.
RegExpobject has properties most of which are set when a match is successful, such as
lastMatchwhich specifies the last successful match. The
Arrayobject has new properties that provide information about a successful match such as
inputwhich specifies the original input string against which the match was executed. See
charCodeAtreturns a number specifying the ISO-Latin-1 codeset value of the character at the specified index in a string object.
concatcombines the text of two strings and returns a new string.
fromCharCodeconstructs a string from a specified sequence of numbers that are ISO-Latin-1 codeset values.
matchexecutes a search for a match between a string and a regular expression.
replaceexecutes a search for a match between a string and a regular expression, and replaces the matched substring with a new substring.
searchtests for a match between a string and a regular expression.
sliceextracts a section of an string and returns a new string.
splitincludes several new features and changes. It can take a regular expression argument, as well as a fixed string, by which to split the object string. It can take a limit count so that it won't include trailing empty elements in the resulting array. If you specify
.split(" ")splits on any run of one or more white space characters including spaces, tabs, line feeds, and carriage returns.
substrreturns the characters in a string collecting the specified number of characters beginning with a specified location in the string.
substringif you specify
<SCRIPT>tag, this method no longer swaps index numbers when the first index is greater than the second.
Numberfunction converts an object to a number. The
Stringfunction converts an object to a string.
evalis no longer a method of individual objects; it is available only as a top-level function.
toStringconverts an object or array to a literal. For this behavior,
watchis a new method of all objects. It watches for a property to be assigned a value and runs a function when that occurs.
unwatchis a new method of all objects. It removes a watchpoint set with the
deleteoperator deletes an object, an object's property, or an element at a specified index in an array. See "delete" on page 395.
!=do not attempt to convert operands from one type to another, and always compare identity of like-typed operands. See "Comparison Operators" on page 385.
continuestatements can now be used with the new
do...whilerepeats a loop until the test condition evaluates to false.
exportallows a signed script to provide functions to other signed or unsigned scripts.
importallows a script to import functions from a signed script which has exported the information.
labelallows the program to break outside nested loops or to continue a loop outside the current loop.
switchallows the program to test several conditions easily.
Last Updated: 11/13/98 10:22:42