Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 508413 of JavaScript methods index

  • Revision slug: Web/JavaScript/Reference/Methods_Index
  • Revision title: JavaScript Methods Index
  • Revision id: 508413
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment avoiding redirectsJavaScript_Methods_Index Web/JavaScript/Reference/Methods_Index
Tags: 

Revision Content

Index Reference

A

abs: Returns the absolute value of a number.

acos: Returns the arccosine (in radians) of a number.

anchor: Creates an HTML anchor that is used as a hypertext target.

apply: Allows you to apply the method of another object in the context of a different object (the calling object).

asin: Returns the arcsine (in radians) of a number.

atan: Returns the arctangent (in radians) of a number.

atan2: Returns the arctangent of the quotient of its arguments.

B

big: Causes a string to be displayed in a big font as if it were in a BIG tag.

blink: Causes a string to blink as if it were in a BLINK tag.

bold: Causes a string to be displayed as if it were in a B tag.

C

call: Allows you to call (execute) a method of another object in the context of a different object (the calling object).

ceil: Returns the smallest integer greater than or equal to a number.

charAt: Returns the character at the specified index.

charCodeAt: Returns a number indicating the Unicode value of the character at the given index.

concat: Joins two arrays/strings and returns a new array/string.

  • concat - Array Object method.
  • concat - String Object method.

cos: Returns the cosine of a number.

D

decodeURI: Decodes a URI which has been encoded with encodeURI.

decodeURIComponent: Decodes a URI which has been encoded with encodeURIComponent.

E

encodeURI: Computes a new version of a complete URI replacing each instance of certain characters with escape sequences representing the UTF-8 encoding of the characters.

encodeURIComponent: Computes a new version of components in a URI replacing each instance of certain characters with escape sequences representing the UTF-8 encoding of the characters.

eval: Evaluates a string of JavaScript code without reference to a particular object.

  • eval - Top-Level function.
  • eval {{ Obsolete_inline() }} - Object Object method.

every: Tests whether all elements in the array pass the test implemented by the provided function.

exec: Executes a search for a match in its string parameter.

exp: Returns Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.

F

filter: Creates a new array with all of the elements of the current array for which the provided filtering function returns true.

fixed: Causes a string to be displayed in fixed-pitch font as if it were in a TT tag.

floor: Returns the largest integer less than or equal to a number.

fontcolor: Causes a string to be displayed in the specified color as if it were in a <FONT COLOR="color"> tag.

fontsize: Causes a string to be displayed in the specified font size as if it were in a <FONT SIZE="size"> tag.

forEach: Calls a function for each element in the array.

fromCharCode: Returns a string created by using the specified sequence of Unicode values. This is a method on the String class, not on a String instance.

G

getDate: Returns the day of the month for the specified date according to local time.

getDay: Returns the day of the week for the specified date according to local time.

getFullYear: Returns the year of the specified date according to local time.

getHours: Returns the hour in the specified date according to local time.

getMilliseconds: Returns the milliseconds in the specified date according to local time.

getMinutes: Returns the minutes in the specified date according to local time.

getMonth: Returns the month in the specified date according to local time.

getSeconds: Returns the seconds in the specified date according to local time.

getTime: Returns the numeric value corresponding to the time for the specified date according to local time.

getTimezoneOffset: Returns the time-zone offset in minutes for the current locale.

getUTCDate: Returns the day (date) of the month in the specified date according to universal time.

getUTCDay: Returns the day of the week in the specified date according to universal time.

getUTCFullYear: Returns the year in the specified date according to universal time.

getUTCHours: Returns the hours in the specified date according to universal time.

getUTCMilliseconds: Returns the milliseconds in the specified date according to universal time.

getUTCMinutes: Returns the minutes in the specified date according to universal time.

getUTCMonth: Returns the month in the specified date according to universal time.

getUTCSeconds: Returns the seconds in the specified date according to universal time.

getYear {{ Deprecated_inline() }} : Returns the year in the specified date according to local time.

I

indexOf: Returns the first index at which a given element can be found in the array/string, or -1 if it is not present.

isFinite: Evaluates an argument to determine whether it is a finite number.

isNaN: Evaluates an argument to determine whether it is not a number.

italics: Causes a string to be italic, as if it were in an I tag.

J

join: Joins all elements of an array into a string.

L

lastIndexOf: Returns the last index at which a given element can be found in the array/string, or -1 if it is not present.

link: Creates an HTML hypertext link that requests another URL.

log: Returns the natural logarithm (base E) of a number.

M

map: Creates a new array with the results of calling a provided function on every element in this array.

match: Used to match a regular expression against a string.

max: Returns the greater of two numbers.

min: Returns the lesser of two numbers.

N

Number: Converts an object to a number.

P

parse: Returns the number of milliseconds in a date since January 1, 1970, 00:00:00, local time.

parseFloat: Parses a string argument and returns a floating-point number.

parseInt: Parses a string argument and returns an integer.

pop: Removes the last element from an array and returns that element.

pow: Returns base to the exponent power, that is, base exponent.

push: Adds one or more elements to the end of an array and returns the new length of the array.

R

random: Returns a pseudo-random number between 0 and 1.

replace: Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.

reverse: Reverses the order of the elements of an array -- the first becomes the last, and the last becomes the first.

round: Returns the value of a number rounded to the nearest integer.

S

search: Executes the search for a match between a regular expression and a specified string.

setDate: Sets the day of the month for a specified date according to local time.

setFullYear: Sets the full year for a specified date according to local time.

setHours: Sets the hours for a specified date according to local time.

setMilliseconds: Sets the milliseconds for a specified date according to local time.

setMinutes: Sets the minutes for a specified date according to local time.

setMonth: Sets the month for a specified date according to local time.

setSeconds: Sets the seconds for a specified date according to local time.

setTime: Sets the value of the Date object according to local time.

setUTCDate: Sets the day of the month for a specified date according to universal time.

setUTCFullYear: Sets the full year for a specified date according to universal time.

setUTCHours: Sets the hour for a specified date according to universal time.

setUTCMilliseconds: Sets the milliseconds for a specified date according to universal time.

setUTCMinutes: Sets the minutes for a specified date according to universal time.

setUTCMonth: Sets the month for a specified date according to universal time.

setUTCSeconds: Sets the seconds for a specified date according to universal time.

setYear {{ Deprecated_inline() }} : Sets the year for a specified date according to local time.

shift: Removes the first element from an array and returns that element.

sin: Returns the sine of a number.

slice: Extracts a section of an array/string and returns a new array/string.

  • slice - Array Object method.
  • slice - String Object method.

small: Causes a string to be displayed in a small font, as if it were in a SMALL tag.

some:Tests whether some element in the array passes the test implemented by the provided function.

sort: Sorts the elements of an array.

splice: Adds and/or removes elements from an array.

split: Splits a String object into an array of strings by separating the string into substrings.

sqrt: Returns the square root of a number.

strike: Causes a string to be displayed as struck-out text, as if it were in a STRIKE tag.

String: Converts and object to a string.

sub: Causes a string to be displayed as a subscript, as if it were in a SUB tag.

substr: Returns the characters in a string beginning at the specified location through the specified number of characters.

substring: Returns the characters in a string between two indexes into the string.

sup: Causes a string to be displayed as a superscript, as if it were in a SUP tag.

T

tan: Returns the tangent of a number.

test: Tests for a match in its string parameter.

toExponential: Returns a string representing the number in exponential notation.

toFixed: Returns a string representing the number in fixed-point notation.

toGMTString {{ Deprecated_inline() }}: Converts a date to a string, using the Internet GMT conventions.

toLocaleString: Converts a date to a string, using the current locale's conventions.

toLocaleDateString: Returns the "date" portion of the Date as a string, using the current locale's conventions.

toLocaleTimeString: Returns the "time" portion of the Date as a string, using the current locale's conventions.

toLowerCase: Returns the calling string value converted to lowercase.

toPrecision: Returns a string representing the number to a specified precision in fixed-point notation.

toSource: Returns a string representing the source code of the array/function/object.

toString: Returns a string representing the specified object/function/JavaArray (and its elements).

toUpperCase: Returns the calling string value converted to uppercase.

toUTCString: Converts a date to a string, using the universal time convention.

U

unshift: Adds one or more elements to the front of an array and returns the new length of the array.

unwatch: Removes a watchpoint from a property of the object.

UTC: Returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time.

V

valueOf: Returns the primitive value of the specified object/function.

W

watch: Adds a watchpoint to a property of the object.

See also

Revision Source

<h3 id="Index_Reference" name="Index_Reference">Index Reference</h3>
<h4 id="A" name="A">A</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/abs">abs</a>: Returns the absolute value of a number.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/acos">acos</a>: Returns the arccosine (in radians) of a number.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/anchor">anchor</a>: Creates an <a class="external" href="https://www.w3.org/TR/html401/struct/links.html#adef-name-A">HTML anchor</a> that is used as a hypertext target.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Function/apply">apply</a>: Allows you to apply the method of another object in the context of a different object (the calling object).
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/asin">asin</a>: Returns the arcsine (in radians) of a number.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/atan">atan</a>: Returns the arctangent (in radians) of a number.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/atan2">atan2</a>: Returns the arctangent of the quotient of its arguments.
</p>
<h4 id="B" name="B">B</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/big">big</a>: Causes a string to be displayed in a big font as if it were in a <a class="external" href="https://www.w3.org/TR/html401/present/graphics.html#edef-BIG"><code>BIG</code> tag</a>.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/blink">blink</a>: Causes a string to blink as if it were in a <code>BLINK</code> tag.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/bold">bold</a>: Causes a string to be displayed as if it were in a <a class="external" href="https://www.w3.org/TR/html401/present/graphics.html#edef-B"><code>B</code> tag</a>.
</p>
<h4 id="C" name="C">C</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Function/call">call</a>: Allows you to call (execute) a method of another object in the context of a different object (the calling object).
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/ceil">ceil</a>: Returns the smallest integer greater than or equal to a number.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/charAt">charAt</a>: Returns the character at the specified index.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/charCodeAt">charCodeAt</a>: Returns a number indicating the Unicode value of the character at the given index.
</p><p>concat: Joins two arrays/strings and returns a new array/string.
</p>
<ul><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/concat">concat</a> - Array Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/concat">concat</a> - String Object method.
</li></ul>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/cos">cos</a>: Returns the cosine of a number.
</p>
<h4 id="D" name="D">D</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Functions/decodeURI">decodeURI</a>: Decodes a URI which has been encoded with <a href="en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURI">encodeURI</a>.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Functions/decodeURIComponent">decodeURIComponent</a>: Decodes a URI which has been encoded with <a href="en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURIComponent">encodeURIComponent</a>.
</p>
<h4 id="E" name="E">E</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURI">encodeURI</a>: Computes a new version of a complete URI replacing each instance of certain characters with escape sequences representing the UTF-8 encoding of the characters.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURIComponent">encodeURIComponent</a>: Computes a new version of components in a URI replacing each instance of certain characters with escape sequences representing the UTF-8 encoding of the characters.
</p><p>eval: Evaluates a string of JavaScript code without reference to a particular object.
</p>
<ul><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Functions/eval">eval</a> - Top-Level function.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Object/eval">eval</a> {{ Obsolete_inline() }} - Object Object method.
</li></ul>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/every">every</a>: Tests whether all elements in the array pass the test implemented by the provided function.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/exec">exec</a>: Executes a search for a match in its string parameter.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/exp">exp</a>: Returns Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.
</p>
<h4 id="F" name="F">F</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/filter">filter</a>: Creates a new array with all of the elements of the current array for which the provided filtering function returns true.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/fixed">fixed</a>: Causes a string to be displayed in fixed-pitch font as if it were in a <a class="external" href="https://www.w3.org/TR/html401/present/graphics.html#edef-TT"><code>TT</code> tag</a>.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/floor">floor</a>: Returns the largest integer less than or equal to a number.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/fontcolor">fontcolor</a>: Causes a string to be displayed in the specified color as if it were in a <code>&lt;FONT COLOR="<i>color</i>"&gt;</code> tag.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/fontsize">fontsize</a>: Causes a string to be displayed in the specified font size as if it were in a <code>&lt;FONT SIZE="<i>size</i>"&gt;</code> tag.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/forEach">forEach</a>: Calls a function for each element in the array.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/fromCharCode">fromCharCode</a>: Returns a string created by using the specified sequence of Unicode values. This is a method on the String class, not on a String instance.
</p>
<h4 id="G" name="G">G</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getDate">getDate</a>: Returns the day of the month for the specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getDay">getDay</a>: Returns the day of the week for the specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getFullYear">getFullYear</a>: Returns the year of the specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getHours">getHours</a>: Returns the hour in the specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMilliseconds">getMilliseconds</a>: Returns the milliseconds in the specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMinutes">getMinutes</a>: Returns the minutes in the specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMonth">getMonth</a>: Returns the month in the specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getSeconds">getSeconds</a>: Returns the seconds in the specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getTime">getTime</a>: Returns the numeric value corresponding to the time for the specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getTimezoneOffset">getTimezoneOffset</a>: Returns the time-zone offset in minutes for the current locale.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCDate">getUTCDate</a>: Returns the day (date) of the month in the specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCDay">getUTCDay</a>: Returns the day of the week in the specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCFullYear">getUTCFullYear</a>: Returns the year in the specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCHours">getUTCHours</a>: Returns the hours in the specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCMilliseconds">getUTCMilliseconds</a>: Returns the milliseconds in the specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCMinutes">getUTCMinutes</a>: Returns the minutes in the specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCMonth">getUTCMonth</a>: Returns the month in the specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCSeconds">getUTCSeconds</a>: Returns the seconds in the specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getYear">getYear</a> {{ Deprecated_inline() }} : Returns the year in the specified date according to local time.
</p>
<h4 id="I" name="I">I</h4>
<p>indexOf: Returns the first index at which a given element can be found in the array/string, or -1 if it is not present.
</p>
<ul><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/indexOf">indexOf</a> - Array Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/indexOf">indexOf</a> - String Object method.
</li></ul>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Functions/isFinite">isFinite</a>: Evaluates an argument to determine whether it is a finite number.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Functions/isNaN">isNaN</a>: Evaluates an argument to determine whether it is not a number.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/italics">italics</a>: Causes a string to be italic, as if it were in an <a class="external" href="https://www.w3.org/TR/html401/present/graphics.html#edef-I"><code>I</code> tag</a>.
</p>
<h4 id="J" name="J">J</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/join">join</a>: Joins all elements of an array into a string.
</p>
<h4 id="L" name="L">L</h4>
<p>lastIndexOf: Returns the last index at which a given element can be found in the array/string, or -1 if it is not present.
</p>
<ul><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/lastIndexOf">lastIndexOf</a> - Array Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/lastIndexOf">lastIndexOf</a> - Sting Object method.
</li></ul>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/link">link</a>: Creates an <a class="external" href="https://www.w3.org/TR/html401/struct/links.html#adef-href">HTML hypertext link</a> that requests another URL.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/log">log</a>: Returns the natural logarithm (base E) of a number.
</p>
<h4 id="M" name="M">M</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/map">map</a>: Creates a new array with the results of calling a provided function on every element in this array.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/match">match</a>: Used to match a regular expression against a string.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/max">max</a>: Returns the greater of two numbers.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/min">min</a>: Returns the lesser of two numbers.
</p>
<h4 id="N" name="N">N</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Functions/Number">Number</a>: Converts an object to a number.
</p>
<h4 id="P" name="P">P</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/parse">parse</a>: Returns the number of milliseconds in a date since January 1, 1970, 00:00:00, local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Functions/parseFloat">parseFloat</a>: Parses a string argument and returns a floating-point number.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Functions/parseInt">parseInt</a>: Parses a string argument and returns an integer.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/pop">pop</a>: Removes the last element from an array and returns that element.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/pow">pow</a>: Returns base to the exponent power, that is, base exponent.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/push">push</a>: Adds one or more elements to the end of an array and returns the new length of the array.
</p>
<h4 id="R" name="R">R</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/random">random</a>: Returns a pseudo-random number between 0 and 1.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/replace">replace</a>: Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/reverse">reverse</a>: Reverses the order of the elements of an array -- the first becomes the last, and the last becomes the first.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/round">round</a>: Returns the value of a number rounded to the nearest integer.
</p>
<h4 id="S" name="S">S</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/search">search</a>: Executes the search for a match between a regular expression and a specified string.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setDate">setDate</a>: Sets the day of the month for a specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setFullYear">setFullYear</a>: Sets the full year for a specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setHours">setHours</a>: Sets the hours for a specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setMilliseconds">setMilliseconds</a>: Sets the milliseconds for a specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setMinutes">setMinutes</a>: Sets the minutes for a specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setMonth">setMonth</a>: Sets the month for a specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setSeconds">setSeconds</a>: Sets the seconds for a specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setTime">setTime</a>: Sets the value of the <code>Date</code> object according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCDate">setUTCDate</a>: Sets the day of the month for a specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCFullYear">setUTCFullYear</a>: Sets the full year for a specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCHours">setUTCHours</a>: Sets the hour for a specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCMilliseconds">setUTCMilliseconds</a>: Sets the milliseconds for a specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCMinutes">setUTCMinutes</a>: Sets the minutes for a specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCMonth">setUTCMonth</a>: Sets the month for a specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCSeconds">setUTCSeconds</a>: Sets the seconds for a specified date according to universal time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setYear">setYear</a> {{ Deprecated_inline() }} : Sets the year for a specified date according to local time.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/shift">shift</a>: Removes the first element from an array and returns that element.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/sin">sin</a>: Returns the sine of a number.
</p><p>slice: Extracts a section of an array/string and returns a new array/string.
</p>
<ul><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/slice">slice</a> - Array Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/slice">slice</a> - String Object method.
</li></ul>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/small">small</a>: Causes a string to be displayed in a small font, as if it were in a <a class="external" href="https://www.w3.org/TR/html401/present/graphics.html#edef-SMALL"><code>SMALL</code> tag</a>.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/some">some</a>:Tests whether some element in the array passes the test implemented by the provided function.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/sort">sort</a>: Sorts the elements of an array.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/splice">splice</a>: Adds and/or removes elements from an array.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/split">split</a>: Splits a String object into an array of strings by separating the string into substrings.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/sqrt">sqrt</a>: Returns the square root of a number.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/strike">strike</a>: Causes a string to be displayed as struck-out text, as if it were in a <a class="external" href="https://www.w3.org/TR/html401/present/graphics.html#edef-STRIKE"><code>STRIKE</code> tag</a>.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Functions/String">String</a>: Converts and object to a string.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/sub">sub</a>: Causes a string to be displayed as a subscript, as if it were in a <a class="external" href="https://www.w3.org/TR/html401/struct/text.html#edef-SUB"><code>SUB</code> tag</a>.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/substr">substr</a>: Returns the characters in a string beginning at the specified location through the specified number of characters.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/substring">substring</a>: Returns the characters in a string between two indexes into the string.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/sup">sup</a>: Causes a string to be displayed as a superscript, as if it were in a <a class="external" href="https://www.w3.org/TR/html401/struct/text.html#edef-SUP"><code>SUP</code> tag</a>.
</p>
<h4 id="T" name="T">T</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Math/tan">tan</a>: Returns the tangent of a number.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/test">test</a>: Tests for a match in its string parameter.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toExponential">toExponential</a>: Returns a string representing the number in exponential notation.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toFixed">toFixed</a>: Returns a string representing the number in fixed-point notation.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toGMTString">toGMTString</a> {{ Deprecated_inline() }}: Converts a date to a string, using the Internet GMT conventions.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString">toLocaleString</a>: Converts a date to a string, using the current locale's conventions.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleDateString">toLocaleDateString</a>: Returns the "date" portion of the Date as a string, using the current locale's conventions.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleTimeString">toLocaleTimeString</a>: Returns the "time" portion of the Date as a string, using the current locale's conventions.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLowerCase">toLowerCase</a>: Returns the calling string value converted to lowercase.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toPrecision">toPrecision</a>: Returns a string representing the number to a specified precision in fixed-point notation.
</p><p>toSource: Returns a string representing the source code of the array/function/object.
</p>
<ul><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/toSource">toSource</a> - Array Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean/toSource">toSource</a> - Boolean Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toSource">toSource</a> - Date Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Function/toSource">toSource</a> - Function Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toSource">toSource</a> - Number Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toSource">toSource</a> - Object Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/toSource">toSource</a> - RegExp Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/toSource">toSource</a> - String Object method.
</li></ul>
<p>toString: Returns a string representing the specified object/function/JavaArray (and its elements).
</p>
<ul><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/toString">toString</a> - Array Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean/toString">toString</a> - Boolean Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toString">toString</a> - Date Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Function/toString">toString</a> - Function Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/JavaArray/toString">toString</a> - JavaArray Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toString">toString</a> - Number Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString">toString</a> - Object Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/toString">toString</a> - RegExp Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/toString">toString</a> - String Object method.
</li></ul>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/toUpperCase">toUpperCase</a>: Returns the calling string value converted to uppercase.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toUTCString">toUTCString</a>: Converts a date to a string, using the universal time convention.
</p>
<h4 id="U" name="U">U</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/unshift">unshift</a>: Adds one or more elements to the front of an array and returns the new length of the array.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Object/unwatch">unwatch</a>: Removes a watchpoint from a property of the object.
</p><p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/UTC">UTC</a>: Returns the number of milliseconds in a <code>Date</code> object since January 1, 1970, 00:00:00, universal time.
</p>
<h4 id="V" name="V">V</h4>
<p>valueOf: Returns the primitive value of the specified object/function.
</p>
<ul><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array/valueOf">valueOf</a> - Array Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean/valueOf">valueOf</a> - Boolean Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Date/valueOf">valueOf</a> - Date Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Function/valueOf">valueOf</a> - Function Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Number/valueOf">valueOf</a> - Number Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Object/valueOf">valueOf</a> - Object Object method.
</li><li> <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/String/valueOf">valueOf</a> - String Object method.
</li></ul>
<h4 id="W" name="W">W</h4>
<p><a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Object/watch">watch</a>: Adds a watchpoint to a property of the object.
</p>
<h3 id="See_also" name="See_also">See also</h3>
<ul><li> <a href="en/JavaScript_Properties_Index">JavaScript Properties Index</a>
</li></ul>
Revert to this revision