properties
Summary
The following table lists JavaScript properties.
Syntax
Properties
| Property | Description | JavaScript object |
|---|---|---|
| 0…n | Returns the value of individual arguments from an arguments object. | arguments |
| $1…$9 | Returns the nine most-recently memorized portions found during pattern matching. | RegExp |
| arguments | Returns an array containing each argument passed to the currently executing function. | Function |
| callee | Returns the Function object being executed. | arguments |
| caller | Returns a reference to the function that invoked the current function. | Function |
| constructor | Specifies the function that creates an object. | Multiple |
| description | Returns or sets the descriptive string associated with a specific error. | Error |
| global | Returns a Boolean value indicating the state of the global flag ( g ) used with a regular expression. | Regular Expression |
| ignoreCase | Returns a Boolean value indicating the state of the ignoreCase flag ( i ) used with a regular expression. | Regular Expression |
| index | Returns the character position where the first successful match begins in a searched string. | RegExp |
| input | Returns the string against which a search was performed. | RegExp |
| lastIndex | Returns the character position where the last successful match begins in a searched string. | RegExp |
| lastMatch | Returns the last matched characters from any regular expression search. | RegExp |
| lastParen | Returns the last parenthesized submatch from any regular expression search, if any. | RegExp |
| leftContext | Returns 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 |
| message | Returns an error message string. | Error |
| multiline | Returns a Boolean value indicating the state of the multiline flag ( m ) used with a regular expression. | Regular Expression |
| name | Returns the name of an error. | Error |
| number | Returns or sets the numeric value associated with a specific error. | Error |
| prototype | Returns a reference to the prototype for a class of objects. | Multiple |
| rightContext | Returns the characters from the position following the last match to the end of the searched string. | RegExp |
| source | Returns a copy of the text of the regular expression pattern. | Regular Expression |
See also
Other articles
Attributions
Microsoft Developer Network: Article