repo_id
stringlengths
22
103
file_path
stringlengths
41
147
content
stringlengths
181
193k
__index_level_0__
int64
0
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/blink/index.md
--- title: String.prototype.blink() slug: Web/JavaScript/Reference/Global_Objects/String/blink page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.blink --- {{JSRef}} {{Deprecated_Header}} The **`blink()`** method of {{jsxref("String")}} values creates a string that...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/anchor/index.md
--- title: String.prototype.anchor() slug: Web/JavaScript/Reference/Global_Objects/String/anchor page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.anchor --- {{JSRef}} {{Deprecated_Header}} The **`anchor()`** method of {{jsxref("String")}} values creates a string ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/tolocaleuppercase/index.md
--- title: String.prototype.toLocaleUpperCase() slug: Web/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase page-type: javascript-instance-method browser-compat: javascript.builtins.String.toLocaleUpperCase --- {{JSRef}} The **`toLocaleUpperCase()`** method of {{jsxref("String")}} values returns this strin...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/raw/index.md
--- title: String.raw() slug: Web/JavaScript/Reference/Global_Objects/String/raw page-type: javascript-static-method browser-compat: javascript.builtins.String.raw --- {{JSRef}} The **`String.raw()`** static method is a tag function of [template literals](/en-US/docs/Web/JavaScript/Reference/Template_literals). This ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/substr/index.md
--- title: String.prototype.substr() slug: Web/JavaScript/Reference/Global_Objects/String/substr page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.substr --- {{JSRef}} {{Deprecated_Header}} The **`substr()`** method of {{jsxref("String")}} values returns a portion...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/trim/index.md
--- title: String.prototype.trim() slug: Web/JavaScript/Reference/Global_Objects/String/trim page-type: javascript-instance-method browser-compat: javascript.builtins.String.trim --- {{JSRef}} The **`trim()`** method of {{jsxref("String")}} values removes whitespace from both ends of this string and returns a new str...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/padstart/index.md
--- title: String.prototype.padStart() slug: Web/JavaScript/Reference/Global_Objects/String/padStart page-type: javascript-instance-method browser-compat: javascript.builtins.String.padStart --- {{JSRef}} The **`padStart()`** method of {{jsxref("String")}} values pads this string with another string (multiple times, ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/touppercase/index.md
--- title: String.prototype.toUpperCase() slug: Web/JavaScript/Reference/Global_Objects/String/toUpperCase page-type: javascript-instance-method browser-compat: javascript.builtins.String.toUpperCase --- {{JSRef}} The **`toUpperCase()`** method of {{jsxref("String")}} values returns this string converted to uppercase...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/trimend/index.md
--- title: String.prototype.trimEnd() slug: Web/JavaScript/Reference/Global_Objects/String/trimEnd page-type: javascript-instance-method browser-compat: javascript.builtins.String.trimEnd --- {{JSRef}} The **`trimEnd()`** method of {{jsxref("String")}} values removes whitespace from the end of this string and returns...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/strike/index.md
--- title: String.prototype.strike() slug: Web/JavaScript/Reference/Global_Objects/String/strike page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.strike --- {{JSRef}} {{Deprecated_Header}} The **`strike()`** method of {{jsxref("String")}} values creates a string ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/iswellformed/index.md
--- title: String.prototype.isWellFormed() slug: Web/JavaScript/Reference/Global_Objects/String/isWellFormed page-type: javascript-instance-method browser-compat: javascript.builtins.String.isWellFormed --- {{JSRef}} The **`isWellFormed()`** method of {{jsxref("String")}} values returns a boolean indicating whether t...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/link/index.md
--- title: String.prototype.link() slug: Web/JavaScript/Reference/Global_Objects/String/link page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.link --- {{JSRef}} {{Deprecated_Header}} The **`link()`** method of {{jsxref("String")}} values creates a string that emb...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/lastindexof/index.md
--- title: String.prototype.lastIndexOf() slug: Web/JavaScript/Reference/Global_Objects/String/lastIndexOf page-type: javascript-instance-method browser-compat: javascript.builtins.String.lastIndexOf --- {{JSRef}} The **`lastIndexOf()`** method of {{jsxref("String")}} values searches this string and returns the index...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/concat/index.md
--- title: String.prototype.concat() slug: Web/JavaScript/Reference/Global_Objects/String/concat page-type: javascript-instance-method browser-compat: javascript.builtins.String.concat --- {{JSRef}} The **`concat()`** method of {{jsxref("String")}} values concatenates the string arguments to this string and returns a...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/localecompare/index.md
--- title: String.prototype.localeCompare() slug: Web/JavaScript/Reference/Global_Objects/String/localeCompare page-type: javascript-instance-method browser-compat: javascript.builtins.String.localeCompare --- {{JSRef}} The **`localeCompare()`** method of {{jsxref("String")}} values returns a number indicating whethe...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/italics/index.md
--- title: String.prototype.italics() slug: Web/JavaScript/Reference/Global_Objects/String/italics page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.italics --- {{JSRef}} {{Deprecated_Header}} The **`italics()`** method of {{jsxref("String")}} values creates a str...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/replace/index.md
--- title: String.prototype.replace() slug: Web/JavaScript/Reference/Global_Objects/String/replace page-type: javascript-instance-method browser-compat: javascript.builtins.String.replace --- {{JSRef}} The **`replace()`** method of {{jsxref("String")}} values returns a new string with one, some, or all matches of a `...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/trimstart/index.md
--- title: String.prototype.trimStart() slug: Web/JavaScript/Reference/Global_Objects/String/trimStart page-type: javascript-instance-method browser-compat: javascript.builtins.String.trimStart --- {{JSRef}} The **`trimStart()`** method of {{jsxref("String")}} values removes whitespace from the beginning of this stri...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/fromcharcode/index.md
--- title: String.fromCharCode() slug: Web/JavaScript/Reference/Global_Objects/String/fromCharCode page-type: javascript-static-method browser-compat: javascript.builtins.String.fromCharCode --- {{JSRef}} The **`String.fromCharCode()`** static method returns a string created from the specified sequence of UTF-16 code...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/fixed/index.md
--- title: String.prototype.fixed() slug: Web/JavaScript/Reference/Global_Objects/String/fixed page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.fixed --- {{JSRef}} {{Deprecated_Header}} The **`fixed()`** method of {{jsxref("String")}} values creates a string that...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/@@iterator/index.md
--- title: String.prototype[@@iterator]() slug: Web/JavaScript/Reference/Global_Objects/String/@@iterator page-type: javascript-instance-method browser-compat: javascript.builtins.String.@@iterator --- {{JSRef}} The **`[@@iterator]()`** method of {{jsxref("String")}} values implements the [iterable protocol](/en-US/d...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/sub/index.md
--- title: String.prototype.sub() slug: Web/JavaScript/Reference/Global_Objects/String/sub page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.sub --- {{JSRef}} {{Deprecated_Header}} The **`sub()`** method of {{jsxref("String")}} values creates a string that embeds ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/bold/index.md
--- title: String.prototype.bold() slug: Web/JavaScript/Reference/Global_Objects/String/bold page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.bold --- {{JSRef}} {{Deprecated_Header}} The **`bold()`** method of {{jsxref("String")}} values creates a string that emb...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/tolowercase/index.md
--- title: String.prototype.toLowerCase() slug: Web/JavaScript/Reference/Global_Objects/String/toLowerCase page-type: javascript-instance-method browser-compat: javascript.builtins.String.toLowerCase --- {{JSRef}} The **`toLowerCase()`** method of {{jsxref("String")}} values returns this string converted to lower cas...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/normalize/index.md
--- title: String.prototype.normalize() slug: Web/JavaScript/Reference/Global_Objects/String/normalize page-type: javascript-instance-method browser-compat: javascript.builtins.String.normalize --- {{JSRef}} The **`normalize()`** method of {{jsxref("String")}} values returns the Unicode Normalization Form of this str...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/valueof/index.md
--- title: String.prototype.valueOf() slug: Web/JavaScript/Reference/Global_Objects/String/valueOf page-type: javascript-instance-method browser-compat: javascript.builtins.String.valueOf --- {{JSRef}} The **`valueOf()`** method of {{jsxref("String")}} values returns this string value. {{EmbedInteractiveExample("pag...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/charat/index.md
--- title: String.prototype.charAt() slug: Web/JavaScript/Reference/Global_Objects/String/charAt page-type: javascript-instance-method browser-compat: javascript.builtins.String.charAt --- {{JSRef}} The **`charAt()`** method of {{jsxref("String")}} values returns a new string consisting of the single UTF-16 code unit...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/charcodeat/index.md
--- title: String.prototype.charCodeAt() slug: Web/JavaScript/Reference/Global_Objects/String/charCodeAt page-type: javascript-instance-method browser-compat: javascript.builtins.String.charCodeAt --- {{JSRef}} The **`charCodeAt()`** method of {{jsxref("String")}} values returns an integer between `0` and `65535` rep...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/string/index.md
--- title: String() constructor slug: Web/JavaScript/Reference/Global_Objects/String/String page-type: javascript-constructor browser-compat: javascript.builtins.String.String --- {{JSRef}} The **`String()`** constructor creates {{jsxref("String")}} objects. When called as a function, it returns primitive values of t...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/replaceall/index.md
--- title: String.prototype.replaceAll() slug: Web/JavaScript/Reference/Global_Objects/String/replaceAll page-type: javascript-instance-method browser-compat: javascript.builtins.String.replaceAll --- {{JSRef}} The **`replaceAll()`** method of {{jsxref("String")}} values returns a new string with all matches of a `pa...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/indexof/index.md
--- title: String.prototype.indexOf() slug: Web/JavaScript/Reference/Global_Objects/String/indexOf page-type: javascript-instance-method browser-compat: javascript.builtins.String.indexOf --- {{JSRef}} The **`indexOf()`** method of {{jsxref("String")}} values searches this string and returns the index of the first oc...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/sup/index.md
--- title: String.prototype.sup() slug: Web/JavaScript/Reference/Global_Objects/String/sup page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.sup --- {{JSRef}} {{Deprecated_Header}} The **`sup()`** method of {{jsxref("String")}} values creates a string that embeds ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/small/index.md
--- title: String.prototype.small() slug: Web/JavaScript/Reference/Global_Objects/String/small page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.small --- {{JSRef}} {{Deprecated_Header}} The **`small()`** method of {{jsxref("String")}} values creates a string that...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/fontcolor/index.md
--- title: String.prototype.fontcolor() slug: Web/JavaScript/Reference/Global_Objects/String/fontcolor page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.fontcolor --- {{JSRef}} {{Deprecated_Header}} The **`fontcolor()`** method of {{jsxref("String")}} values creat...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string
data/mdn-content/files/en-us/web/javascript/reference/global_objects/string/big/index.md
--- title: String.prototype.big() slug: Web/JavaScript/Reference/Global_Objects/String/big page-type: javascript-instance-method status: - deprecated browser-compat: javascript.builtins.String.big --- {{JSRef}} {{Deprecated_Header}} The **`big()`** method of {{jsxref("String")}} values creates a string that embeds ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/asynciterator/index.md
--- title: AsyncIterator slug: Web/JavaScript/Reference/Global_Objects/AsyncIterator page-type: javascript-class browser-compat: javascript.builtins.AsyncIterator --- {{JSRef}} An **`AsyncIterator`** object is an object that conforms to the [async iterator protocol](/en-US/docs/Web/JavaScript/Reference/Iteration_prot...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/asynciterator
data/mdn-content/files/en-us/web/javascript/reference/global_objects/asynciterator/@@asynciterator/index.md
--- title: AsyncIterator.prototype[@@asyncIterator]() slug: Web/JavaScript/Reference/Global_Objects/AsyncIterator/@@asyncIterator page-type: javascript-instance-method browser-compat: javascript.builtins.AsyncIterator.@@asyncIterator --- {{JSRef}} The **`[@@asyncIterator]()`** method of {{jsxref("AsyncIterator")}} in...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/unescape/index.md
--- title: unescape() slug: Web/JavaScript/Reference/Global_Objects/unescape page-type: javascript-function status: - deprecated browser-compat: javascript.builtins.unescape --- {{jsSidebar("Objects")}}{{Deprecated_Header}} > **Note:** `unescape()` is a non-standard function implemented by browsers and was only sta...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/asyncgeneratorfunction/index.md
--- title: AsyncGeneratorFunction slug: Web/JavaScript/Reference/Global_Objects/AsyncGeneratorFunction page-type: javascript-class browser-compat: javascript.builtins.AsyncGeneratorFunction --- {{JSRef}} The **`AsyncGeneratorFunction`** object provides methods for [async generator functions](/en-US/docs/Web/JavaScrip...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/asyncgeneratorfunction
data/mdn-content/files/en-us/web/javascript/reference/global_objects/asyncgeneratorfunction/asyncgeneratorfunction/index.md
--- title: AsyncGeneratorFunction() constructor slug: Web/JavaScript/Reference/Global_Objects/AsyncGeneratorFunction/AsyncGeneratorFunction page-type: javascript-constructor browser-compat: javascript.builtins.AsyncGeneratorFunction.AsyncGeneratorFunction --- {{JSRef}} The **`AsyncGeneratorFunction()`** constructor c...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/index.md
--- title: Math slug: Web/JavaScript/Reference/Global_Objects/Math page-type: javascript-namespace browser-compat: javascript.builtins.Math --- {{JSRef}} The **`Math`** namespace object contains static properties and methods for mathematical constants and functions. `Math` works with the {{jsxref("Number")}} type. I...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/cos/index.md
--- title: Math.cos() slug: Web/JavaScript/Reference/Global_Objects/Math/cos page-type: javascript-static-method browser-compat: javascript.builtins.Math.cos --- {{JSRef}} The **`Math.cos()`** static method returns the cosine of a number in radians. {{EmbedInteractiveExample("pages/js/math-cos.html")}} ## Syntax `...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/imul/index.md
--- title: Math.imul() slug: Web/JavaScript/Reference/Global_Objects/Math/imul page-type: javascript-static-method browser-compat: javascript.builtins.Math.imul --- {{JSRef}} The **`Math.imul()`** static method returns the result of the C-like 32-bit multiplication of the two parameters. {{EmbedInteractiveExample("p...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/pow/index.md
--- title: Math.pow() slug: Web/JavaScript/Reference/Global_Objects/Math/pow page-type: javascript-static-method browser-compat: javascript.builtins.Math.pow --- {{JSRef}} The **`Math.pow()`** static method returns the value of a base raised to a power. That is <math display="block"><semantics><mrow><mrow><mo lspace...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/ln10/index.md
--- title: Math.LN10 slug: Web/JavaScript/Reference/Global_Objects/Math/LN10 page-type: javascript-static-data-property browser-compat: javascript.builtins.Math.LN10 --- {{JSRef}} The **`Math.LN10`** static data property represents the natural logarithm of 10, approximately 2.302. {{EmbedInteractiveExample("pages/js...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/floor/index.md
--- title: Math.floor() slug: Web/JavaScript/Reference/Global_Objects/Math/floor page-type: javascript-static-method browser-compat: javascript.builtins.Math.floor --- {{JSRef}} The **`Math.floor()`** static method always rounds down and returns the largest integer less than or equal to a given number. {{EmbedIntera...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/random/index.md
--- title: Math.random() slug: Web/JavaScript/Reference/Global_Objects/Math/random page-type: javascript-static-method browser-compat: javascript.builtins.Math.random --- {{JSRef}} The **`Math.random()`** static method returns a floating-point, pseudo-random number that's greater than or equal to 0 and less than 1, w...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/cosh/index.md
--- title: Math.cosh() slug: Web/JavaScript/Reference/Global_Objects/Math/cosh page-type: javascript-static-method browser-compat: javascript.builtins.Math.cosh --- {{JSRef}} The **`Math.cosh()`** static method returns the hyperbolic cosine of a number. That is, <math display="block"><semantics><mrow><mrow><mo lspac...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/atanh/index.md
--- title: Math.atanh() slug: Web/JavaScript/Reference/Global_Objects/Math/atanh page-type: javascript-static-method browser-compat: javascript.builtins.Math.atanh --- {{JSRef}} The **`Math.atanh()`** static method returns the inverse hyperbolic tangent of a number. That is, <math display="block"><semantics><mtable ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/fround/index.md
--- title: Math.fround() slug: Web/JavaScript/Reference/Global_Objects/Math/fround page-type: javascript-static-method browser-compat: javascript.builtins.Math.fround --- {{JSRef}} The **`Math.fround()`** static method returns the nearest [32-bit single precision](https://en.wikipedia.org/wiki/Single-precision_floati...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/abs/index.md
--- title: Math.abs() slug: Web/JavaScript/Reference/Global_Objects/Math/abs page-type: javascript-static-method browser-compat: javascript.builtins.Math.abs --- {{JSRef}} The **`Math.abs()`** static method returns the absolute value of a number. {{EmbedInteractiveExample("pages/js/math-abs.html")}} ## Syntax ```j...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/log1p/index.md
--- title: Math.log1p() slug: Web/JavaScript/Reference/Global_Objects/Math/log1p page-type: javascript-static-method browser-compat: javascript.builtins.Math.log1p --- {{JSRef}} The **`Math.log1p()`** static method returns the natural logarithm (base [e](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E)) of...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/clz32/index.md
--- title: Math.clz32() slug: Web/JavaScript/Reference/Global_Objects/Math/clz32 page-type: javascript-static-method browser-compat: javascript.builtins.Math.clz32 --- {{JSRef}} The **`Math.clz32()`** static method returns the number of leading zero bits in the 32-bit binary representation of a number. {{EmbedIntera...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/log/index.md
--- title: Math.log() slug: Web/JavaScript/Reference/Global_Objects/Math/log page-type: javascript-static-method browser-compat: javascript.builtins.Math.log --- {{JSRef}} The **`Math.log()`** static method returns the natural logarithm (base [e](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E)) of a numbe...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/ceil/index.md
--- title: Math.ceil() slug: Web/JavaScript/Reference/Global_Objects/Math/ceil page-type: javascript-static-method browser-compat: javascript.builtins.Math.ceil --- {{JSRef}} The **`Math.ceil()`** static method always rounds up and returns the smallest integer greater than or equal to a given number. {{EmbedInteract...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/pi/index.md
--- title: Math.PI slug: Web/JavaScript/Reference/Global_Objects/Math/PI page-type: javascript-static-data-property browser-compat: javascript.builtins.Math.PI --- {{JSRef}} The **`Math.PI`** static data property represents the ratio of the circumference of a circle to its diameter, approximately 3.14159. {{EmbedInt...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/sqrt1_2/index.md
--- title: Math.SQRT1_2 slug: Web/JavaScript/Reference/Global_Objects/Math/SQRT1_2 page-type: javascript-static-data-property browser-compat: javascript.builtins.Math.SQRT1_2 --- {{JSRef}} The **`Math.SQRT1_2`** static data property represents the square root of 1/2, which is approximately 0.707. {{EmbedInteractiveE...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/sinh/index.md
--- title: Math.sinh() slug: Web/JavaScript/Reference/Global_Objects/Math/sinh page-type: javascript-static-method browser-compat: javascript.builtins.Math.sinh --- {{JSRef}} The **`Math.sinh()`** static method returns the hyperbolic sine of a number. That is, <math display="block"><semantics><mrow><mrow><mo lspace=...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/round/index.md
--- title: Math.round() slug: Web/JavaScript/Reference/Global_Objects/Math/round page-type: javascript-static-method browser-compat: javascript.builtins.Math.round --- {{JSRef}} The **`Math.round()`** static method returns the value of a number rounded to the nearest integer. {{EmbedInteractiveExample("pages/js/math...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/acos/index.md
--- title: Math.acos() slug: Web/JavaScript/Reference/Global_Objects/Math/acos page-type: javascript-static-method browser-compat: javascript.builtins.Math.acos --- {{JSRef}} The **`Math.acos()`** static method returns the inverse cosine (in radians) of a number. That is, <math display="block"><semantics><mrow><mo>∀...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/ln2/index.md
--- title: Math.LN2 slug: Web/JavaScript/Reference/Global_Objects/Math/LN2 page-type: javascript-static-data-property browser-compat: javascript.builtins.Math.LN2 --- {{JSRef}} The **`Math.LN2`** static data property represents the natural logarithm of 2, approximately 0.693: {{EmbedInteractiveExample("pages/js/math...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/log2/index.md
--- title: Math.log2() slug: Web/JavaScript/Reference/Global_Objects/Math/log2 page-type: javascript-static-method browser-compat: javascript.builtins.Math.log2 --- {{JSRef}} The **`Math.log2()`** static method returns the base 2 logarithm of a number. That is <math display="block"><semantics><mrow><mo>∀</mo><mi>x</...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/tan/index.md
--- title: Math.tan() slug: Web/JavaScript/Reference/Global_Objects/Math/tan page-type: javascript-static-method browser-compat: javascript.builtins.Math.tan --- {{JSRef}} The **`Math.tan()`** static method returns the tangent of a number in radians. {{EmbedInteractiveExample("pages/js/math-tan.html")}} ## Syntax ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/log2e/index.md
--- title: Math.LOG2E slug: Web/JavaScript/Reference/Global_Objects/Math/LOG2E page-type: javascript-static-data-property browser-compat: javascript.builtins.Math.LOG2E --- {{JSRef}} The **`Math.LOG2E`** static data property represents the base 2 logarithm of [e](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Ma...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/log10/index.md
--- title: Math.log10() slug: Web/JavaScript/Reference/Global_Objects/Math/log10 page-type: javascript-static-method browser-compat: javascript.builtins.Math.log10 --- {{JSRef}} The **`Math.log10()`** static method returns the base 10 logarithm of a number. That is <math display="block"><semantics><mrow><mo>∀</mo><m...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/sin/index.md
--- title: Math.sin() slug: Web/JavaScript/Reference/Global_Objects/Math/sin page-type: javascript-static-method browser-compat: javascript.builtins.Math.sin --- {{JSRef}} The **`Math.sin()`** static method returns the sine of a number in radians. {{EmbedInteractiveExample("pages/js/math-sin.html")}} ## Syntax ```...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/cbrt/index.md
--- title: Math.cbrt() slug: Web/JavaScript/Reference/Global_Objects/Math/cbrt page-type: javascript-static-method browser-compat: javascript.builtins.Math.cbrt --- {{JSRef}} The **`Math.cbrt()`** static method returns the cube root of a number. That is <math display="block"><semantics><mrow><mrow><mo lspace="0em" r...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/trunc/index.md
--- title: Math.trunc() slug: Web/JavaScript/Reference/Global_Objects/Math/trunc page-type: javascript-static-method browser-compat: javascript.builtins.Math.trunc --- {{JSRef}} The **`Math.trunc()`** static method returns the integer part of a number by removing any fractional digits. {{EmbedInteractiveExample("pag...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/atan/index.md
--- title: Math.atan() slug: Web/JavaScript/Reference/Global_Objects/Math/atan page-type: javascript-static-method browser-compat: javascript.builtins.Math.atan --- {{JSRef}} The **`Math.atan()`** static method returns the inverse tangent (in radians) of a number, that is <math display="block"><semantics><mrow><mrow...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/atan2/index.md
--- title: Math.atan2() slug: Web/JavaScript/Reference/Global_Objects/Math/atan2 page-type: javascript-static-method browser-compat: javascript.builtins.Math.atan2 --- {{JSRef}} The **`Math.atan2()`** static method returns the angle in the plane (in radians) between the positive x-axis and the ray from (0, 0) to the ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/sign/index.md
--- title: Math.sign() slug: Web/JavaScript/Reference/Global_Objects/Math/sign page-type: javascript-static-method browser-compat: javascript.builtins.Math.sign --- {{JSRef}} The **`Math.sign()`** static method returns 1 or -1, indicating the sign of the number passed as argument. If the input is 0 or -0, it will be ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/min/index.md
--- title: Math.min() slug: Web/JavaScript/Reference/Global_Objects/Math/min page-type: javascript-static-method browser-compat: javascript.builtins.Math.min --- {{JSRef}} The **`Math.min()`** static method returns the smallest of the numbers given as input parameters, or {{jsxref("Infinity")}} if there are no parame...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/log10e/index.md
--- title: Math.LOG10E slug: Web/JavaScript/Reference/Global_Objects/Math/LOG10E page-type: javascript-static-data-property browser-compat: javascript.builtins.Math.LOG10E --- {{JSRef}} The **`Math.LOG10E`** static data property represents the base 10 logarithm of [e](/en-US/docs/Web/JavaScript/Reference/Global_Objec...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/asinh/index.md
--- title: Math.asinh() slug: Web/JavaScript/Reference/Global_Objects/Math/asinh page-type: javascript-static-method browser-compat: javascript.builtins.Math.asinh --- {{JSRef}} The **`Math.asinh()`** static method returns the inverse hyperbolic sine of a number. That is, <math display="block"><semantics><mtable col...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/expm1/index.md
--- title: Math.expm1() slug: Web/JavaScript/Reference/Global_Objects/Math/expm1 page-type: javascript-static-method browser-compat: javascript.builtins.Math.expm1 --- {{JSRef}} The **`Math.expm1()`** static method returns [e](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E) raised to the power of a number...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/exp/index.md
--- title: Math.exp() slug: Web/JavaScript/Reference/Global_Objects/Math/exp page-type: javascript-static-method browser-compat: javascript.builtins.Math.exp --- {{JSRef}} The **`Math.exp()`** static method returns [e](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E) raised to the power of a number. That i...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/hypot/index.md
--- title: Math.hypot() slug: Web/JavaScript/Reference/Global_Objects/Math/hypot page-type: javascript-static-method browser-compat: javascript.builtins.Math.hypot --- {{JSRef}} The **`Math.hypot()`** static method returns the square root of the sum of squares of its arguments. That is, <math display="block"><semant...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/asin/index.md
--- title: Math.asin() slug: Web/JavaScript/Reference/Global_Objects/Math/asin page-type: javascript-static-method browser-compat: javascript.builtins.Math.asin --- {{JSRef}} The **`Math.asin()`** static method returns the inverse sine (in radians) of a number. That is, <math display="block" xmlns="http://www.w3.org...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/e/index.md
--- title: Math.E slug: Web/JavaScript/Reference/Global_Objects/Math/E page-type: javascript-static-data-property browser-compat: javascript.builtins.Math.E --- {{JSRef}} The **`Math.E`** static data property represents Euler's number, the base of natural logarithms, e, which is approximately 2.718. {{EmbedInteracti...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/sqrt2/index.md
--- title: Math.SQRT2 slug: Web/JavaScript/Reference/Global_Objects/Math/SQRT2 page-type: javascript-static-data-property browser-compat: javascript.builtins.Math.SQRT2 --- {{JSRef}} The **`Math.SQRT2`** static data property represents the square root of 2, approximately 1.414. {{EmbedInteractiveExample("pages/js/ma...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/acosh/index.md
--- title: Math.acosh() slug: Web/JavaScript/Reference/Global_Objects/Math/acosh page-type: javascript-static-method browser-compat: javascript.builtins.Math.acosh --- {{JSRef}} The **`Math.acosh()`** static method returns the inverse hyperbolic cosine of a number. That is, <math display="block"><semantics><mtable c...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/max/index.md
--- title: Math.max() slug: Web/JavaScript/Reference/Global_Objects/Math/max page-type: javascript-static-method browser-compat: javascript.builtins.Math.max --- {{JSRef}} The **`Math.max()`** static method returns the largest of the numbers given as input parameters, or -{{jsxref("Infinity")}} if there are no parame...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/tanh/index.md
--- title: Math.tanh() slug: Web/JavaScript/Reference/Global_Objects/Math/tanh page-type: javascript-static-method browser-compat: javascript.builtins.Math.tanh --- {{JSRef}} The **`Math.tanh()`** static method returns the hyperbolic tangent of a number. That is, <math display="block"><semantics><mrow><mrow><mo lspa...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math
data/mdn-content/files/en-us/web/javascript/reference/global_objects/math/sqrt/index.md
--- title: Math.sqrt() slug: Web/JavaScript/Reference/Global_Objects/Math/sqrt page-type: javascript-static-method browser-compat: javascript.builtins.Math.sqrt --- {{JSRef}} The **`Math.sqrt()`** static method returns the square root of a number. That is <math display="block"><semantics><mrow><mo>∀</mo><mi>x</mi><m...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/float64array/index.md
--- title: Float64Array slug: Web/JavaScript/Reference/Global_Objects/Float64Array page-type: javascript-class browser-compat: javascript.builtins.Float64Array --- {{JSRef}} The **`Float64Array`** typed array represents an array of 64-bit floating point numbers in the platform byte order. If control over byte order i...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/float64array
data/mdn-content/files/en-us/web/javascript/reference/global_objects/float64array/float64array/index.md
--- title: Float64Array() constructor slug: Web/JavaScript/Reference/Global_Objects/Float64Array/Float64Array page-type: javascript-constructor browser-compat: javascript.builtins.Float64Array.Float64Array --- {{JSRef}} The **`Float64Array()`** constructor creates {{jsxref("Float64Array")}} objects. The contents are ...
0
data/mdn-content/files/en-us/web
data/mdn-content/files/en-us/web/guide/index.md
--- title: Developer guides slug: Web/Guide page-type: landing-page --- <section id="Quick_links"> {{ListSubpagesForSidebar("/en-US/docs/Web/Guide")}} </section> There are a number of guides within MDN docs. These articles aim to add additional usage examples, or teach you how to use an API or feature. This page li...
0
data/mdn-content/files/en-us/web/guide/css
data/mdn-content/files/en-us/web/guide/css/css_layout/index.md
--- title: CSS Layout slug: Web/Guide/CSS/CSS_Layout page-type: guide --- There are a number of methods that you can use to lay out your web pages and applications. MDN contains a number of in-depth guides to the different methods, and this page provides an overview of them all. ## Normal flow, block, and inline layo...
0
data/mdn-content/files/en-us/web/guide/css/getting_started
data/mdn-content/files/en-us/web/guide/css/getting_started/challenge_solutions/index.md
--- title: Challenge solutions slug: Web/Guide/CSS/Getting_started/Challenge_solutions page-type: guide --- This page provides solutions to the challenges posed in the [CSS Getting Started](/en-US/docs/Learn/CSS/First_steps) tutorial. These are not the only possible solutions. The sections below correspond to the titl...
0
data/mdn-content/files/en-us/web
data/mdn-content/files/en-us/web/accessibility/index.md
--- title: Accessibility slug: Web/Accessibility page-type: landing-page --- <section id="Quick_links"> {{ListSubpagesForSidebar("Web/Accessibility", 1)}} </section> **Accessibility** (often abbreviated to **A11y** — as in, "a", then 11 characters, and then "y") in web development means enabling as many people as p...
0
data/mdn-content/files/en-us/web/accessibility
data/mdn-content/files/en-us/web/accessibility/an_overview_of_accessible_web_applications_and_widgets/index.md
--- title: An overview of accessible web applications and widgets slug: Web/Accessibility/An_overview_of_accessible_web_applications_and_widgets page-type: guide --- <section id="Quick_links"> {{ListSubpagesForSidebar("Web/Accessibility", 1)}} </section> Most JavaScript libraries offer a library of client-side widg...
0
data/mdn-content/files/en-us/web/accessibility
data/mdn-content/files/en-us/web/accessibility/accessibility_and_spacial_patterns/index.md
--- title: Accessibility and Spacial Patterns slug: Web/Accessibility/Accessibility_and_Spacial_Patterns page-type: guide --- <section id="Quick_links"> {{ListSubpagesForSidebar("Web/Accessibility", 1)}} </section> ### Spatial Localization NASA conducted research on the perception of color, and found that luminanc...
0
data/mdn-content/files/en-us/web/accessibility
data/mdn-content/files/en-us/web/accessibility/information_for_web_authors/index.md
--- title: Accessibility information for web authors slug: Web/Accessibility/Information_for_Web_authors page-type: guide --- <section id="Quick_links"> {{ListSubpagesForSidebar("Web/Accessibility", 1)}} </section> ## Guidelines and Regulations 1. [<abbr>ARIA</abbr> Authoring Practices Guide (<abbr>APG</abbr>)](ht...
0
data/mdn-content/files/en-us/web/accessibility
data/mdn-content/files/en-us/web/accessibility/accessibility_colon__what_users_can_to_to_browse_safely/index.md
--- title: "Accessibility: What users can do to browse more safely" slug: Web/Accessibility/Accessibility:_What_users_can_to_to_browse_safely page-type: guide --- <section id="Quick_links"> {{ListSubpagesForSidebar("Web/Accessibility", 1)}} </section> This article discusses making web content accessible for those w...
0
data/mdn-content/files/en-us/web/accessibility
data/mdn-content/files/en-us/web/accessibility/aria/index.md
--- title: ARIA slug: Web/Accessibility/ARIA page-type: landing-page --- <section id="Quick_links"> <ol> <li><a href="/en-US/docs/Web/Accessibility/ARIA/Annotations">ARIA annotations</a></li> <li><a href="/en-US/docs/Web/Accessibility/ARIA/ARIA_Guides">ARIA guides</a></li> <li><a href="/en-US/docs/Web/Ac...
0
data/mdn-content/files/en-us/web/accessibility/aria
data/mdn-content/files/en-us/web/accessibility/aria/aria_screen_reader_implementors_guide/index.md
--- title: ARIA Screen Reader Implementors Guide slug: Web/Accessibility/ARIA/ARIA_Screen_Reader_Implementors_Guide page-type: guide --- <section id="Quick_links"> <ol> <li><a href="/en-US/docs/Web/Accessibility/ARIA/Annotations">ARIA annotations</a></li> <li><a href="/en-US/docs/Web/Accessibility/ARIA/ARIA_...
0
data/mdn-content/files/en-us/web/accessibility/aria
data/mdn-content/files/en-us/web/accessibility/aria/multipart_labels/index.md
--- title: "Multipart labels: Using ARIA for labels with embedded fields inside them" slug: Web/Accessibility/ARIA/Multipart_labels page-type: guide --- <section id="Quick_links"> <ol> <li><a href="/en-US/docs/Web/Accessibility/ARIA/Annotations">ARIA annotations</a></li> <li><a href="/en-US/docs/Web/Accessib...
0
data/mdn-content/files/en-us/web/accessibility/aria
data/mdn-content/files/en-us/web/accessibility/aria/attributes/index.md
--- title: ARIA states and properties slug: Web/Accessibility/ARIA/Attributes page-type: landing-page --- This page lists reference pages covering all the <abbr>WAI-ARIA</abbr> attributes discussed on MDN. <abbr>ARIA</abbr> attributes enable modifying an element's states and properties as defined in the accessibility...
0
data/mdn-content/files/en-us/web/accessibility/aria/attributes
data/mdn-content/files/en-us/web/accessibility/aria/attributes/aria-label/index.md
--- title: aria-label slug: Web/Accessibility/ARIA/Attributes/aria-label page-type: aria-attribute spec-urls: https://w3c.github.io/aria/#aria-label --- The `aria-label` attribute defines a string value that labels an interactive element. ## Description Sometimes the default [accessible name](https://w3c.github.io/a...
0
data/mdn-content/files/en-us/web/accessibility/aria/attributes
data/mdn-content/files/en-us/web/accessibility/aria/attributes/aria-rowindextext/index.md
--- title: aria-rowindextext slug: Web/Accessibility/ARIA/Attributes/aria-rowindextext page-type: aria-attribute spec-urls: https://w3c.github.io/aria/#aria-rowindextext --- The `aria-rowindextext` attribute defines a human-readable text alternative of `aria-rowindex`. ## Description When you have a very long table ...
0