Share via


Properties (Visual Studio - JScript)

A property is a value or set of values (in the form of an array or object) that is a member of an object. The following sections link to information that explains how to use the properties in JScript.

In This Section

  • 0...n Properties
    Returns the actual value of individual arguments from an arguments object returned by the arguments property of an executing function.

  • $1...$9 Properties
    Returns the nine most-recently memorized portions found during pattern matching.

  • arguments Property
    Returns the arguments object for the currently executing Function object.caller Property

  • callee Property
    Returns the Function object being executed that is the body text of the specified Function object.

  • caller Property
    Returns a reference to the function that invoked the current function.

  • constructor Property
    Specifies the function that creates an object.

  • description Property
    Returns or sets the descriptive string associated with a specific error.

  • E Property
    Returns the mathematical constant e, the base of natural logarithms.

  • global Property
    Returns a Boolean value indicating the state of the global flag (g) used with a regular expression.

  • ignoreCase Property
    Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression.

  • index Property
    Returns the character position where the first successful match begins in a searched string.

  • Infinity Property
    Returns an initial value of Number.POSITIVE_INFINITY.

  • input Property ($_)
    Returns the string against which a regular expression search was performed.

  • lastIndex Property
    Returns the character position where the next match begins in a searched string.

  • lastMatch Property ($&)
    Returns the last matched characters from any regular expression search.

  • lastParen Property ($+)
    Returns the last parenthesized submatch, if any, from any regular expression search.

  • leftContext Property ($`)
    Returns the characters from the beginning of a searched string up to the position before the beginning of the last match.

  • length Property (arguments)
    Returns the actual number of arguments passed to a function by the caller.

  • length Property (Array)
    Returns an integer value one higher than the highest element defined in an array.

  • length Property (Function)
    Returns the number of arguments defined for a function.

  • length Property (String)
    Returns the length of a String object.

  • LN10 Property
    Returns the natural logarithm of 10.

  • LN2 Property
    Returns the natural logarithm of 2.

  • LOG10E Property
    Returns the base-10 logarithm of e, the base of natural logarithms.

  • LOG2E Property
    Returns the base-2 logarithm of e, the base of natural logarithms.

  • MAX_VALUE Property
    Returns the largest number representable in JScript. Equal to approximately 1.79E+308.

  • message Property
    Returns an error message string.

  • MIN_VALUE Property
    Returns the number closest to zero that JScript can represent. Equal to approximately 5.00E-324.

  • multiline Property
    Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression.

  • name Property
    Returns the name of an error.

  • NaN Property
    A special value that indicates that an arithmetic expression returned a value that was not a number.

  • NaN Property (Global)
    Returns the special value NaN indicating that an expression is not a number.

  • NEGATIVE_INFINITY Property
    Returns a value more negative than the largest negative number (-Number.MAX_VALUE) that JScript can represent.

  • number Property
    Returns a value more negative than the largest negative number (-Number.MAX_VALUE) that JScript can represent.

  • PI Property
    Returns the ratio of the circumference of a circle to its diameter, approximately 3.141592653589793.

  • POSITIVE_INFINITY Property
    Returns a value larger than the largest number (Number.MAX_VALUE) that JScript can represent.

  • propertyIsEnumerable Property
    Returns a Boolean value indicating whether a specified property is part of an object and if it is enumerable.

  • prototype Property
    Returns a reference to the prototype for a class of objects.

  • rightContext Property ($')
    Returns the characters from the position following the last match to the end of the searched string.

  • source Property
    Returns a copy of the text of the regular expression pattern.

  • SQRT1_2 Property
    Returns he square root of 0.5, or one divided by the square root of 2.

  • SQRT2 Property
    Returns the square root of 2

  • undefined Property
    Returns an initial value of undefined.

  • JScript Reference
    Lists elements that comprise JScript Language Reference and links to topics that explain the details behind the proper use of language elements.