Share via


Methods (J-R)

A method is a function that is a member of an object. Following are methods whose names begin with letters j through r.

In This Section

  • join Method
    Returns a String object consisting of all the concatenated elements of an array.

  • lastIndexOf Method
    Returns the last occurrence of a substring within a String object.

  • lbound Method
    Returns the lowest index value used in the specified dimension of a VBArray.

  • link Method
    Places an HTML anchor with an HREF attribute around the text in a String object.

  • localeCompare Method
    Returns a value indicating whether two strings are equivalent in the current locale.

  • log Method
    Returns the natural logarithm of a number.

  • match Method
    Returns, as an array, the results of a search on a string using a supplied Regular Expression object.

  • max Method
    Returns the greater of two supplied numeric expressions

  • min Method
    Returns the lesser of two supplied numbers.

  • moveFirst Method
    Resets the current item in the collection to the first item.

  • moveNext Method
    Moves the current item to the next item in the collection.

  • parse Method
    Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.

  • parseFloat Method
    Returns a floating-point number converted from a string.

  • parseInt Method
    Returns an integer converted from a string.

  • pop Method
    Removes the last element from an array and returns it.

  • pow Method
    Returns the value of a base expression raised to a specified power.

  • push Method
    Appends new elements to an array and returns the new length of the array.

  • random Method
    Returns a pseudorandom number between 0 and 1.

  • replace Method
    Returns a copy of a string with text replaced using a regular expression.

  • reverse Method
    Returns an Array object with the elements reversed.

  • round Method
    Returns a specified numeric expression rounded to the nearest integer.

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

  • Methods
    Lists the methods, classified alphabetically, available in JScript, and links to each category of methods.

  • Objects
    Explains the concept of objects in JScript, how objects are related to properties and methods, and links to topics that provide more detail about the objects that JScript supports.