This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

properties

Summary

The following table lists JavaScript properties.

Syntax

Properties

PropertyDescriptionJavaScript object
0…nReturns the value of individual arguments from an arguments object.arguments
$1…$9Returns the nine most-recently memorized portions found during pattern matching.RegExp
argumentsReturns an array containing each argument passed to the currently executing function.Function
calleeReturns the Function object being executed.arguments
callerReturns a reference to the function that invoked the current function.Function
constructorSpecifies the function that creates an object.Multiple
descriptionReturns or sets the descriptive string associated with a specific error.Error
globalReturns a Boolean value indicating the state of the global flag ( g ) used with a regular expression.Regular Expression
ignoreCaseReturns a Boolean value indicating the state of the ignoreCase flag ( i ) used with a regular expression.Regular Expression
indexReturns the character position where the first successful match begins in a searched string.RegExp
inputReturns the string against which a search was performed.RegExp
lastIndexReturns the character position where the last successful match begins in a searched string.RegExp
lastMatchReturns the last matched characters from any regular expression search.RegExp
lastParenReturns the last parenthesized submatch from any regular expression search, if any.RegExp
leftContextReturns the characters from the beginning of a searched string up to the position before the beginning of the last match.RegExp
length (arguments)Returns the actual number of arguments passed to a function by the caller.arguments
length (Array)Returns an integer value one higher than the highest element defined in an array.Array
length (Function)Returns the number of arguments defined for a function.Function
length (String)Returns the length of a String object.String
messageReturns an error message string.Error
multilineReturns a Boolean value indicating the state of the multiline flag ( m ) used with a regular expression.Regular Expression
nameReturns the name of an error.Error
numberReturns or sets the numeric value associated with a specific error.Error
prototypeReturns a reference to the prototype for a class of objects.Multiple
rightContextReturns the characters from the position following the last match to the end of the searched string.RegExp
sourceReturns a copy of the text of the regular expression pattern.Regular Expression

See also

Other articles

Attributions

  • Microsoft Developer Network: Article