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/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/subtraction_assignment/index.md
--- title: Subtraction assignment (-=) slug: Web/JavaScript/Reference/Operators/Subtraction_assignment page-type: javascript-operator browser-compat: javascript.operators.subtraction_assignment --- {{jsSidebar("Operators")}} The **subtraction assignment (`-=`)** operator performs [subtraction](/en-US/docs/Web/JavaScr...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/optional_chaining/index.md
--- title: Optional chaining (?.) slug: Web/JavaScript/Reference/Operators/Optional_chaining page-type: javascript-operator browser-compat: javascript.operators.optional_chaining --- {{jsSidebar("Operators")}} The **optional chaining (`?.`)** operator accesses an object's property or calls a function. If the object a...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/new/index.md
--- title: new slug: Web/JavaScript/Reference/Operators/new page-type: javascript-operator browser-compat: javascript.operators.new --- {{jsSidebar("Operators")}} The **`new`** operator lets developers create an instance of a user-defined object type or of one of the built-in object types that has a constructor funct...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/operator_precedence/index.md
--- title: Operator precedence slug: Web/JavaScript/Reference/Operators/Operator_precedence page-type: guide --- {{jsSidebar("Operators")}} **Operator precedence** determines how operators are parsed concerning each other. Operators with higher precedence become the operands of operators with lower precedence. {{Emb...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/nullish_coalescing_assignment/index.md
--- title: Nullish coalescing assignment (??=) slug: Web/JavaScript/Reference/Operators/Nullish_coalescing_assignment page-type: javascript-operator browser-compat: javascript.operators.nullish_coalescing_assignment --- {{jsSidebar("Operators")}} The **nullish coalescing assignment (`??=`)** operator, also known as t...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/class/index.md
--- title: class expression slug: Web/JavaScript/Reference/Operators/class page-type: javascript-operator browser-compat: javascript.operators.class --- {{jsSidebar("Operators")}} The **`class`** keyword can be used to define a class inside an expression. You can also define classes using the [`class` declaration](/...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/property_accessors/index.md
--- title: Property accessors slug: Web/JavaScript/Reference/Operators/Property_accessors page-type: javascript-operator browser-compat: javascript.operators.property_accessors --- {{jsSidebar("Operators")}} **Property accessors** provide access to an object's properties by using the dot notation or the bracket notat...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/multiplication/index.md
--- title: Multiplication (*) slug: Web/JavaScript/Reference/Operators/Multiplication page-type: javascript-operator browser-compat: javascript.operators.multiplication --- {{jsSidebar("Operators")}} The **multiplication (`*`)** operator produces the product of the operands. {{EmbedInteractiveExample("pages/js/expre...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/yield_star_/index.md
--- title: yield* slug: Web/JavaScript/Reference/Operators/yield* page-type: javascript-operator browser-compat: javascript.operators.yield_star --- {{jsSidebar("Operators")}} The **`yield*`** operator is used to delegate to another [iterable](/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_iterable_prot...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/comma_operator/index.md
--- title: Comma operator (,) slug: Web/JavaScript/Reference/Operators/Comma_operator page-type: javascript-operator browser-compat: javascript.operators.comma --- {{jsSidebar("Operators")}} The **comma (`,`)** operator evaluates each of its operands (from left to right) and returns the value of the last operand. Thi...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/import/index.md
--- title: import() slug: Web/JavaScript/Reference/Operators/import page-type: javascript-operator browser-compat: javascript.operators.import --- {{jsSidebar("Operators")}} The **`import()`** syntax, commonly called _dynamic import_, is a function-like expression that allows loading an ECMAScript module asynchronous...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/grouping/index.md
--- title: Grouping operator ( ) slug: Web/JavaScript/Reference/Operators/Grouping page-type: javascript-operator browser-compat: javascript.operators.grouping --- {{jsSidebar("Operators")}} The **grouping `( )`** operator controls the precedence of evaluation in expressions. It also acts as a container for arbitrary...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/greater_than/index.md
--- title: Greater than (>) slug: Web/JavaScript/Reference/Operators/Greater_than page-type: javascript-operator browser-compat: javascript.operators.greater_than --- {{jsSidebar("Operators")}} The **greater than (`>`)** operator returns `true` if the left operand is greater than the right operand, and `false` otherw...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/division/index.md
--- title: Division (/) slug: Web/JavaScript/Reference/Operators/Division page-type: javascript-operator browser-compat: javascript.operators.division --- {{jsSidebar("Operators")}} The **division (`/`)** operator produces the quotient of its operands where the left operand is the dividend and the right operand is th...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/nullish_coalescing/index.md
--- title: Nullish coalescing operator (??) slug: Web/JavaScript/Reference/Operators/Nullish_coalescing page-type: javascript-operator browser-compat: javascript.operators.nullish_coalescing --- {{jsSidebar("Operators")}} The **nullish coalescing (`??`)** operator is a logical operator that returns its right-hand sid...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/logical_and/index.md
--- title: Logical AND (&&) slug: Web/JavaScript/Reference/Operators/Logical_AND page-type: javascript-operator browser-compat: javascript.operators.logical_and --- {{jsSidebar("Operators")}} The **logical AND (`&&`)** (logical conjunction) operator for a set of boolean operands will be `true` if and only if all the ...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/division_assignment/index.md
--- title: Division assignment (/=) slug: Web/JavaScript/Reference/Operators/Division_assignment page-type: javascript-operator browser-compat: javascript.operators.division_assignment --- {{jsSidebar("Operators")}} The **division assignment (`/=`)** operator performs [division](/en-US/docs/Web/JavaScript/Reference/O...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/equality/index.md
--- title: Equality (==) slug: Web/JavaScript/Reference/Operators/Equality page-type: javascript-operator browser-compat: javascript.operators.equality --- {{jsSidebar("Operators")}} The **equality (`==`)** operator checks whether its two operands are equal, returning a Boolean result. Unlike the [strict equality](/e...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/instanceof/index.md
--- title: instanceof slug: Web/JavaScript/Reference/Operators/instanceof page-type: javascript-operator browser-compat: javascript.operators.instanceof --- {{jsSidebar("Operators")}} The **`instanceof`** operator tests to see if the `prototype` property of a constructor appears anywhere in the prototype chain of an ...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/super/index.md
--- title: super slug: Web/JavaScript/Reference/Operators/super page-type: javascript-language-feature browser-compat: javascript.operators.super --- {{jsSidebar("Operators")}} The **`super`** keyword is used to access properties on an object literal or class's [[Prototype]], or invoke a superclass's constructor. Th...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/right_shift/index.md
--- title: Right shift (>>) slug: Web/JavaScript/Reference/Operators/Right_shift page-type: javascript-operator browser-compat: javascript.operators.right_shift --- {{jsSidebar("Operators")}} The **right shift (`>>`)** operator returns a number or BigInt whose binary representation is the first operand shifted by the...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/exponentiation/index.md
--- title: Exponentiation (**) slug: Web/JavaScript/Reference/Operators/Exponentiation page-type: javascript-operator browser-compat: javascript.operators.exponentiation --- {{jsSidebar("Operators")}} The **exponentiation (`**`)** operator returns the result of raising the first operand to the power of the second ope...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/bitwise_xor_assignment/index.md
--- title: Bitwise XOR assignment (^=) slug: Web/JavaScript/Reference/Operators/Bitwise_XOR_assignment page-type: javascript-operator browser-compat: javascript.operators.bitwise_xor_assignment --- {{jsSidebar("Operators")}} The **bitwise XOR assignment (`^=`)** operator performs [bitwise XOR](/en-US/docs/Web/JavaScr...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/new.target/index.md
--- title: new.target slug: Web/JavaScript/Reference/Operators/new.target page-type: javascript-language-feature browser-compat: javascript.operators.new_target --- {{jsSidebar("Operators")}} The **`new.target`** meta-property lets you detect whether a function or constructor was called using the [`new`](/en-US/docs/...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/function_star_/index.md
--- title: function* expression slug: Web/JavaScript/Reference/Operators/function* page-type: javascript-operator browser-compat: javascript.operators.generator_function --- {{jsSidebar("Operators")}} The **`function*`** keyword can be used to define a generator function inside an expression. You can also define gen...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/bitwise_xor/index.md
--- title: Bitwise XOR (^) slug: Web/JavaScript/Reference/Operators/Bitwise_XOR page-type: javascript-operator browser-compat: javascript.operators.bitwise_xor --- {{jsSidebar("Operators")}} The **bitwise XOR (`^`)** operator returns a number or BigInt whose binary representation has a `1` in each bit position for wh...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/greater_than_or_equal/index.md
--- title: Greater than or equal (>=) slug: Web/JavaScript/Reference/Operators/Greater_than_or_equal page-type: javascript-operator browser-compat: javascript.operators.greater_than_or_equal --- {{jsSidebar("Operators")}} The **greater than or equal (`>=`)** operator returns `true` if the left operand is greater than...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/addition_assignment/index.md
--- title: Addition assignment (+=) slug: Web/JavaScript/Reference/Operators/Addition_assignment page-type: javascript-operator browser-compat: javascript.operators.addition_assignment --- {{jsSidebar("Operators")}} The **addition assignment (`+=`)** operator performs [addition](/en-US/docs/Web/JavaScript/Reference/O...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/bitwise_and/index.md
--- title: Bitwise AND (&) slug: Web/JavaScript/Reference/Operators/Bitwise_AND page-type: javascript-operator browser-compat: javascript.operators.bitwise_and --- {{jsSidebar("Operators")}} The **bitwise AND (`&`)** operator returns a number or BigInt whose binary representation has a `1` in each bit position for wh...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/addition/index.md
--- title: Addition (+) slug: Web/JavaScript/Reference/Operators/Addition page-type: javascript-operator browser-compat: javascript.operators.addition --- {{jsSidebar("Operators")}} The **addition (`+`)** operator produces the sum of numeric operands or string concatenation. {{EmbedInteractiveExample("pages/js/expre...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/void/index.md
--- title: void operator slug: Web/JavaScript/Reference/Operators/void page-type: javascript-operator browser-compat: javascript.operators.void --- {{jsSidebar("Operators")}} The **`void`** operator evaluates the given `expression` and then returns {{jsxref("undefined")}}. {{EmbedInteractiveExample("pages/js/express...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/bitwise_not/index.md
--- title: Bitwise NOT (~) slug: Web/JavaScript/Reference/Operators/Bitwise_NOT page-type: javascript-operator browser-compat: javascript.operators.bitwise_not --- {{jsSidebar("Operators")}} The **bitwise NOT (`~`)** operator returns a number or BigInt whose binary representation has a `1` in each bit position for wh...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/await/index.md
--- title: await slug: Web/JavaScript/Reference/Operators/await page-type: javascript-operator browser-compat: javascript.operators.await --- {{jsSidebar("Operators")}} The **`await`** operator is used to wait for a {{jsxref("Promise")}} and get its fulfillment value. It can only be used inside an [async function](/e...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/unary_plus/index.md
--- title: Unary plus (+) slug: Web/JavaScript/Reference/Operators/Unary_plus page-type: javascript-operator browser-compat: javascript.operators.unary_plus --- {{jsSidebar("Operators")}} The **unary plus (`+`)** operator precedes its operand and evaluates to its operand but attempts to [convert it into a number](/en...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/remainder_assignment/index.md
--- title: Remainder assignment (%=) slug: Web/JavaScript/Reference/Operators/Remainder_assignment page-type: javascript-operator browser-compat: javascript.operators.remainder_assignment --- {{jsSidebar("Operators")}} The **remainder assignment (`%=`)** operator performs [remainder](/en-US/docs/Web/JavaScript/Refere...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/delete/index.md
--- title: delete slug: Web/JavaScript/Reference/Operators/delete page-type: javascript-operator browser-compat: javascript.operators.delete --- {{jsSidebar("Operators")}} The **`delete`** operator removes a property from an object. If the property's value is an object and there are no more references to the object, ...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/left_shift/index.md
--- title: Left shift (<<) slug: Web/JavaScript/Reference/Operators/Left_shift page-type: javascript-operator browser-compat: javascript.operators.left_shift --- {{jsSidebar("Operators")}} The **left shift (`<<`)** operator returns a number or BigInt whose binary representation is the first operand shifted by the spe...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/strict_equality/index.md
--- title: Strict equality (===) slug: Web/JavaScript/Reference/Operators/Strict_equality page-type: javascript-operator browser-compat: javascript.operators.strict_equality --- {{jsSidebar("Operators")}} The **strict equality (`===`)** operator checks whether its two operands are equal, returning a Boolean result. U...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/assignment/index.md
--- title: Assignment (=) slug: Web/JavaScript/Reference/Operators/Assignment page-type: javascript-operator browser-compat: javascript.operators.assignment --- {{jsSidebar("Operators")}} The **assignment (`=`)** operator is used to assign a value to a variable or property. The assignment expression itself has a valu...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/yield/index.md
--- title: yield slug: Web/JavaScript/Reference/Operators/yield page-type: javascript-operator browser-compat: javascript.operators.yield --- {{jsSidebar("Operators")}} The **`yield`** operator is used to pause and resume a [generator function](/en-US/docs/Web/JavaScript/Reference/Statements/function*). {{EmbedInter...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/unsigned_right_shift_assignment/index.md
--- title: Unsigned right shift assignment (>>>=) slug: Web/JavaScript/Reference/Operators/Unsigned_right_shift_assignment page-type: javascript-operator browser-compat: javascript.operators.unsigned_right_shift_assignment --- {{jsSidebar("Operators")}} The **unsigned right shift assignment (`>>>=`)** operator perfor...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/spread_syntax/index.md
--- title: Spread syntax (...) slug: Web/JavaScript/Reference/Operators/Spread_syntax page-type: javascript-operator browser-compat: javascript.operators.spread --- {{jsSidebar("Operators")}} The **spread (`...`)** syntax allows an iterable, such as an array or string, to be expanded in places where zero or more argu...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/right_shift_assignment/index.md
--- title: Right shift assignment (>>=) slug: Web/JavaScript/Reference/Operators/Right_shift_assignment page-type: javascript-operator browser-compat: javascript.operators.right_shift_assignment --- {{jsSidebar("Operators")}} The **right shift assignment (`>>=`)** operator performs [right shift](/en-US/docs/Web/JavaS...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/async_function_star_/index.md
--- title: async function* expression slug: Web/JavaScript/Reference/Operators/async_function* page-type: javascript-operator browser-compat: javascript.operators.async_generator_function --- {{jsSidebar("Operators")}} The **`async function*`** keywords can be used to define an async generator function inside an expr...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/unary_negation/index.md
--- title: Unary negation (-) slug: Web/JavaScript/Reference/Operators/Unary_negation page-type: javascript-operator browser-compat: javascript.operators.unary_negation --- {{jsSidebar("Operators")}} The **unary negation (`-`)** operator precedes its operand and negates it. {{EmbedInteractiveExample("pages/js/expres...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/increment/index.md
--- title: Increment (++) slug: Web/JavaScript/Reference/Operators/Increment page-type: javascript-operator browser-compat: javascript.operators.increment --- {{jsSidebar("Operators")}} The **increment (`++`)** operator increments (adds one to) its operand and returns the value before or after the increment, dependin...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/bitwise_or_assignment/index.md
--- title: Bitwise OR assignment (|=) slug: Web/JavaScript/Reference/Operators/Bitwise_OR_assignment page-type: javascript-operator browser-compat: javascript.operators.bitwise_or_assignment --- {{jsSidebar("Operators")}} The **bitwise OR assignment (`|=`)** operator performs [bitwise OR](/en-US/docs/Web/JavaScript/R...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/logical_or_assignment/index.md
--- title: Logical OR assignment (||=) slug: Web/JavaScript/Reference/Operators/Logical_OR_assignment page-type: javascript-operator browser-compat: javascript.operators.logical_or_assignment --- {{jsSidebar("Operators")}} The **logical OR assignment (`||=`)** operator only evaluates the right operand and assigns to ...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/subtraction/index.md
--- title: Subtraction (-) slug: Web/JavaScript/Reference/Operators/Subtraction page-type: javascript-operator browser-compat: javascript.operators.subtraction --- {{jsSidebar("Operators")}} The **subtraction (`-`)** operator subtracts the two operands, producing their difference. {{EmbedInteractiveExample("pages/js...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/strict_inequality/index.md
--- title: Strict inequality (!==) slug: Web/JavaScript/Reference/Operators/Strict_inequality page-type: javascript-operator browser-compat: javascript.operators.strict_inequality --- {{jsSidebar("Operators")}} The **strict inequality (`!==`)** operator checks whether its two operands are not equal, returning a Boole...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/import.meta/index.md
--- title: import.meta slug: Web/JavaScript/Reference/Operators/import.meta page-type: javascript-language-feature browser-compat: javascript.operators.import_meta --- {{jsSidebar("Operators")}} The **`import.meta`** meta-property exposes context-specific metadata to a JavaScript module. It contains information about...
0
data/mdn-content/files/en-us/web/javascript/reference/operators/import.meta
data/mdn-content/files/en-us/web/javascript/reference/operators/import.meta/resolve/index.md
--- title: import.meta.resolve() slug: Web/JavaScript/Reference/Operators/import.meta/resolve page-type: javascript-language-feature browser-compat: javascript.operators.import_meta.resolve --- {{jsSidebar("Operators")}} **`import.meta.resolve()`** is a built-in function defined on the [`import.meta`](/en-US/docs/Web...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/logical_or/index.md
--- title: Logical OR (||) slug: Web/JavaScript/Reference/Operators/Logical_OR page-type: javascript-operator browser-compat: javascript.operators.logical_or --- {{jsSidebar("Operators")}} The **logical OR (`||`)** (logical disjunction) operator for a set of operands is true if and only if one or more of its operands...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/typeof/index.md
--- title: typeof slug: Web/JavaScript/Reference/Operators/typeof page-type: javascript-operator browser-compat: javascript.operators.typeof --- {{jsSidebar("Operators")}} The **`typeof`** operator returns a string indicating the type of the operand's value. {{EmbedInteractiveExample("pages/js/expressions-typeof.htm...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/logical_not/index.md
--- title: Logical NOT (!) slug: Web/JavaScript/Reference/Operators/Logical_NOT page-type: javascript-operator browser-compat: javascript.operators.logical_not --- {{jsSidebar("Operators")}} The **logical NOT (`!`)** (logical complement, negation) operator takes truth to falsity and vice versa. It is typically used w...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/logical_and_assignment/index.md
--- title: Logical AND assignment (&&=) slug: Web/JavaScript/Reference/Operators/Logical_AND_assignment page-type: javascript-operator browser-compat: javascript.operators.logical_and_assignment --- {{jsSidebar("Operators")}} The **logical AND assignment (`&&=`)** operator only evaluates the right operand and assigns...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/in/index.md
--- title: in slug: Web/JavaScript/Reference/Operators/in page-type: javascript-operator browser-compat: javascript.operators.in --- {{jsSidebar("Operators")}} The **`in`** operator returns `true` if the specified property is in the specified object or its prototype chain. The `in` operator cannot be used to search ...
0
data/mdn-content/files/en-us/web/javascript/reference/operators
data/mdn-content/files/en-us/web/javascript/reference/operators/less_than/index.md
--- title: Less than (<) slug: Web/JavaScript/Reference/Operators/Less_than page-type: javascript-operator browser-compat: javascript.operators.less_than --- {{jsSidebar("Operators")}} The **less than (`<`)** operator returns `true` if the left operand is less than the right operand, and `false` otherwise. {{EmbedIn...
0
data/mdn-content/files/en-us/web/javascript/reference
data/mdn-content/files/en-us/web/javascript/reference/functions/index.md
--- title: Functions slug: Web/JavaScript/Reference/Functions page-type: guide browser-compat: javascript.functions --- {{jsSidebar("Functions")}} Generally speaking, a function is a "subprogram" that can be _called_ by code external (or internal, in the case of recursion) to the function. Like the program itself, a ...
0
data/mdn-content/files/en-us/web/javascript/reference/functions
data/mdn-content/files/en-us/web/javascript/reference/functions/get/index.md
--- title: get slug: Web/JavaScript/Reference/Functions/get page-type: javascript-language-feature browser-compat: javascript.functions.get --- {{jsSidebar("Functions")}} The **`get`** syntax binds an object property to a function that will be called when that property is looked up. It can also be used in [classes](/...
0
data/mdn-content/files/en-us/web/javascript/reference/functions
data/mdn-content/files/en-us/web/javascript/reference/functions/set/index.md
--- title: set slug: Web/JavaScript/Reference/Functions/set page-type: javascript-language-feature browser-compat: javascript.functions.set --- {{jsSidebar("Functions")}} The **`set`** syntax binds an object property to a function to be called when there is an attempt to set that property. It can also be used in [cla...
0
data/mdn-content/files/en-us/web/javascript/reference/functions
data/mdn-content/files/en-us/web/javascript/reference/functions/arguments/index.md
--- title: The arguments object slug: Web/JavaScript/Reference/Functions/arguments page-type: javascript-language-feature browser-compat: javascript.functions.arguments --- {{jsSidebar("Functions")}} **`arguments`** is an array-like object accessible inside [functions](/en-US/docs/Web/JavaScript/Guide/Functions) that...
0
data/mdn-content/files/en-us/web/javascript/reference/functions/arguments
data/mdn-content/files/en-us/web/javascript/reference/functions/arguments/callee/index.md
--- title: arguments.callee slug: Web/JavaScript/Reference/Functions/arguments/callee page-type: javascript-instance-data-property status: - deprecated browser-compat: javascript.functions.arguments.callee --- {{jsSidebar("Functions")}}{{Deprecated_Header}} > **Note:** Accessing `arguments.callee` in [strict mode](...
0
data/mdn-content/files/en-us/web/javascript/reference/functions/arguments
data/mdn-content/files/en-us/web/javascript/reference/functions/arguments/length/index.md
--- title: arguments.length slug: Web/JavaScript/Reference/Functions/arguments/length page-type: javascript-instance-data-property browser-compat: javascript.functions.arguments.length --- {{jsSidebar("Functions")}} The **`arguments.length`** data property contains the number of arguments passed to the function. ## ...
0
data/mdn-content/files/en-us/web/javascript/reference/functions/arguments
data/mdn-content/files/en-us/web/javascript/reference/functions/arguments/@@iterator/index.md
--- title: arguments[@@iterator]() slug: Web/JavaScript/Reference/Functions/arguments/@@iterator page-type: javascript-instance-method browser-compat: javascript.functions.arguments.@@iterator --- {{jsSidebar("Functions")}} The **`[@@iterator]()`** method of {{jsxref("Functions/arguments", "arguments")}} objects impl...
0
data/mdn-content/files/en-us/web/javascript/reference/functions
data/mdn-content/files/en-us/web/javascript/reference/functions/default_parameters/index.md
--- title: Default parameters slug: Web/JavaScript/Reference/Functions/Default_parameters page-type: javascript-language-feature browser-compat: javascript.functions.default_parameters --- {{jsSidebar("Functions")}} **Default function parameters** allow named parameters to be initialized with default values if no val...
0
data/mdn-content/files/en-us/web/javascript/reference/functions
data/mdn-content/files/en-us/web/javascript/reference/functions/rest_parameters/index.md
--- title: Rest parameters slug: Web/JavaScript/Reference/Functions/rest_parameters page-type: javascript-language-feature browser-compat: javascript.functions.rest_parameters --- {{jsSidebar("Functions")}} The **rest parameter** syntax allows a function to accept an indefinite number of arguments as an array, provid...
0
data/mdn-content/files/en-us/web/javascript/reference/functions
data/mdn-content/files/en-us/web/javascript/reference/functions/arrow_functions/index.md
--- title: Arrow function expressions slug: Web/JavaScript/Reference/Functions/Arrow_functions page-type: javascript-language-feature browser-compat: javascript.functions.arrow_functions --- {{jsSidebar("Functions")}} An **arrow function expression** is a compact alternative to a traditional [function expression](/en...
0
data/mdn-content/files/en-us/web/javascript/reference/functions
data/mdn-content/files/en-us/web/javascript/reference/functions/method_definitions/index.md
--- title: Method definitions slug: Web/JavaScript/Reference/Functions/Method_definitions page-type: javascript-language-feature browser-compat: javascript.functions.method_definitions --- {{jsSidebar("Functions")}} **Method definition** is a shorter syntax for defining a function property in an object initializer. I...
0
data/mdn-content/files/en-us/web/javascript/reference
data/mdn-content/files/en-us/web/javascript/reference/template_literals/index.md
--- title: Template literals (Template strings) slug: Web/JavaScript/Reference/Template_literals page-type: javascript-language-feature browser-compat: javascript.grammar.template_literals --- {{jsSidebar("More")}} **Template literals** are literals delimited with backtick (`` ` ``) characters, allowing for [multi-li...
0
data/mdn-content/files/en-us/web/javascript/reference
data/mdn-content/files/en-us/web/javascript/reference/global_objects/index.md
--- title: Standard built-in objects slug: Web/JavaScript/Reference/Global_Objects page-type: landing-page --- {{jsSidebar("Objects")}} This chapter documents all of JavaScript's standard, built-in objects, including their methods and properties. The term "global objects" (or standard built-in objects) here is not t...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/evalerror/index.md
--- title: EvalError slug: Web/JavaScript/Reference/Global_Objects/EvalError page-type: javascript-class browser-compat: javascript.builtins.EvalError --- {{JSRef}} The **`EvalError`** object indicates an error regarding the global {{jsxref("Global_Objects/eval", "eval()")}} function. This exception is not thrown by ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/evalerror
data/mdn-content/files/en-us/web/javascript/reference/global_objects/evalerror/evalerror/index.md
--- title: EvalError() constructor slug: Web/JavaScript/Reference/Global_Objects/EvalError/EvalError page-type: javascript-constructor browser-compat: javascript.builtins.EvalError.EvalError --- {{JSRef}} The **`EvalError()`** constructor creates {{jsxref("EvalError")}} objects. ## Syntax ```js-nolint new EvalError...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/uint8array/index.md
--- title: Uint8Array slug: Web/JavaScript/Reference/Global_Objects/Uint8Array page-type: javascript-class browser-compat: javascript.builtins.Uint8Array --- {{JSRef}} The **`Uint8Array`** typed array represents an array of 8-bit unsigned integers. The contents are initialized to `0`. Once established, you can refere...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/uint8array
data/mdn-content/files/en-us/web/javascript/reference/global_objects/uint8array/uint8array/index.md
--- title: Uint8Array() constructor slug: Web/JavaScript/Reference/Global_Objects/Uint8Array/Uint8Array page-type: javascript-constructor browser-compat: javascript.builtins.Uint8Array.Uint8Array --- {{JSRef}} The **`Uint8Array()`** constructor creates {{jsxref("Uint8Array")}} objects. The contents are initialized to...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/json/index.md
--- title: JSON slug: Web/JavaScript/Reference/Global_Objects/JSON page-type: javascript-namespace browser-compat: javascript.builtins.JSON --- {{JSRef}} The **`JSON`** namespace object contains static methods for parsing values from and converting values to [JavaScript Object Notation](https://json.org/) ({{Glossary...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/json
data/mdn-content/files/en-us/web/javascript/reference/global_objects/json/parse/index.md
--- title: JSON.parse() slug: Web/JavaScript/Reference/Global_Objects/JSON/parse page-type: javascript-static-method browser-compat: javascript.builtins.JSON.parse --- {{JSRef}} The **`JSON.parse()`** static method parses a JSON string, constructing the JavaScript value or object described by the string. An optional ...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/json
data/mdn-content/files/en-us/web/javascript/reference/global_objects/json/stringify/index.md
--- title: JSON.stringify() slug: Web/JavaScript/Reference/Global_Objects/JSON/stringify page-type: javascript-static-method browser-compat: javascript.builtins.JSON.stringify --- {{JSRef}} The **`JSON.stringify()`** static method converts a JavaScript value to a JSON string, optionally replacing values if a replacer...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/undefined/index.md
--- title: undefined slug: Web/JavaScript/Reference/Global_Objects/undefined page-type: javascript-global-property browser-compat: javascript.builtins.undefined --- {{jsSidebar("Objects")}} The **`undefined`** global property represents the primitive value [`undefined`](/en-US/docs/Web/JavaScript/Data_structures#unde...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/weakset/index.md
--- title: WeakSet slug: Web/JavaScript/Reference/Global_Objects/WeakSet page-type: javascript-class browser-compat: javascript.builtins.WeakSet --- {{JSRef}} A **`WeakSet`** is a collection of garbage-collectable values, including objects and [non-registered symbols](/en-US/docs/Web/JavaScript/Reference/Global_Objec...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/weakset
data/mdn-content/files/en-us/web/javascript/reference/global_objects/weakset/weakset/index.md
--- title: WeakSet() constructor slug: Web/JavaScript/Reference/Global_Objects/WeakSet/WeakSet page-type: javascript-constructor browser-compat: javascript.builtins.WeakSet.WeakSet --- {{JSRef}} The **`WeakSet()`** constructor creates {{jsxref("WeakSet")}} objects. ## Syntax ```js-nolint new WeakSet() new WeakSet(i...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/weakset
data/mdn-content/files/en-us/web/javascript/reference/global_objects/weakset/add/index.md
--- title: WeakSet.prototype.add() slug: Web/JavaScript/Reference/Global_Objects/WeakSet/add page-type: javascript-instance-method browser-compat: javascript.builtins.WeakSet.add --- {{JSRef}} The **`add()`** method of {{jsxref("WeakSet")}} instances appends a new object to the end of this `WeakSet`. {{EmbedInteract...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/weakset
data/mdn-content/files/en-us/web/javascript/reference/global_objects/weakset/has/index.md
--- title: WeakSet.prototype.has() slug: Web/JavaScript/Reference/Global_Objects/WeakSet/has page-type: javascript-instance-method browser-compat: javascript.builtins.WeakSet.has --- {{JSRef}} The **`has()`** method of {{jsxref("WeakSet")}} instances returns a boolean indicating whether an object exists in this `Weak...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/weakset
data/mdn-content/files/en-us/web/javascript/reference/global_objects/weakset/delete/index.md
--- title: WeakSet.prototype.delete() slug: Web/JavaScript/Reference/Global_Objects/WeakSet/delete page-type: javascript-instance-method browser-compat: javascript.builtins.WeakSet.delete --- {{JSRef}} The **`delete()`** method of {{jsxref("WeakSet")}} instances removes the specified element from this `WeakSet`. {{E...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/decodeuricomponent/index.md
--- title: decodeURIComponent() slug: Web/JavaScript/Reference/Global_Objects/decodeURIComponent page-type: javascript-function browser-compat: javascript.builtins.decodeURIComponent --- {{jsSidebar("Objects")}} The **`decodeURIComponent()`** function decodes a Uniform Resource Identifier (URI) component previously c...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/index.md
--- title: Map slug: Web/JavaScript/Reference/Global_Objects/Map page-type: javascript-class browser-compat: javascript.builtins.Map --- {{JSRef}} The **`Map`** object holds key-value pairs and remembers the original insertion order of the keys. Any value (both objects and {{Glossary("Primitive", "primitive values")}...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/map/index.md
--- title: Map() constructor slug: Web/JavaScript/Reference/Global_Objects/Map/Map page-type: javascript-constructor browser-compat: javascript.builtins.Map.Map --- {{JSRef}} The **`Map()`** constructor creates {{jsxref("Map")}} objects. ## Syntax ```js-nolint new Map() new Map(iterable) ``` > **Note:** `Map()` ca...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/groupby/index.md
--- title: Map.groupBy() slug: Web/JavaScript/Reference/Global_Objects/Map/groupBy page-type: javascript-static-method browser-compat: javascript.builtins.Map.groupBy --- {{JSRef}} > **Note:** In some versions of some browsers, this method was implemented as the method `Array.prototype.groupToMap()`. Due to web compa...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/get/index.md
--- title: Map.prototype.get() slug: Web/JavaScript/Reference/Global_Objects/Map/get page-type: javascript-instance-method browser-compat: javascript.builtins.Map.get --- {{JSRef}} The **`get()`** method of {{jsxref("Map")}} instances returns a specified element from this map. If the value that is associated to the p...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/has/index.md
--- title: Map.prototype.has() slug: Web/JavaScript/Reference/Global_Objects/Map/has page-type: javascript-instance-method browser-compat: javascript.builtins.Map.has --- {{JSRef}} The **`has()`** method of {{jsxref("Map")}} instances returns a boolean indicating whether an element with the specified key exists in th...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/set/index.md
--- title: Map.prototype.set() slug: Web/JavaScript/Reference/Global_Objects/Map/set page-type: javascript-instance-method browser-compat: javascript.builtins.Map.set --- {{JSRef}} The **`set()`** method of {{jsxref("Map")}} instances adds or updates an entry in this map with a specified key and a value. {{EmbedInte...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/keys/index.md
--- title: Map.prototype.keys() slug: Web/JavaScript/Reference/Global_Objects/Map/keys page-type: javascript-instance-method browser-compat: javascript.builtins.Map.keys --- {{JSRef}} The **`keys()`** method of {{jsxref("Map")}} instances returns a new _[map iterator](/en-US/docs/Web/JavaScript/Reference/Global_Objec...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/clear/index.md
--- title: Map.prototype.clear() slug: Web/JavaScript/Reference/Global_Objects/Map/clear page-type: javascript-instance-method browser-compat: javascript.builtins.Map.clear --- {{JSRef}} The **`clear()`** method of {{jsxref("Map")}} instances removes all elements from this map. {{EmbedInteractiveExample("pages/js/ma...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/size/index.md
--- title: Map.prototype.size slug: Web/JavaScript/Reference/Global_Objects/Map/size page-type: javascript-instance-accessor-property browser-compat: javascript.builtins.Map.size --- {{JSRef}} The **`size`** accessor property of {{jsxref("Map")}} instances returns the number of elements in this map. {{EmbedInteracti...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/values/index.md
--- title: Map.prototype.values() slug: Web/JavaScript/Reference/Global_Objects/Map/values page-type: javascript-instance-method browser-compat: javascript.builtins.Map.values --- {{JSRef}} The **`values()`** method of {{jsxref("Map")}} instances returns a new _[map iterator](/en-US/docs/Web/JavaScript/Reference/Glob...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/@@iterator/index.md
--- title: Map.prototype[@@iterator]() slug: Web/JavaScript/Reference/Global_Objects/Map/@@iterator page-type: javascript-instance-method browser-compat: javascript.builtins.Map.@@iterator --- {{JSRef}} The **`[@@iterator]()`** method of {{jsxref("Map")}} instances implements the [iterable protocol](/en-US/docs/Web/J...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/delete/index.md
--- title: Map.prototype.delete() slug: Web/JavaScript/Reference/Global_Objects/Map/delete page-type: javascript-instance-method browser-compat: javascript.builtins.Map.delete --- {{JSRef}} The **`delete()`** method of {{jsxref("Map")}} instances removes the specified element from this map by key. {{EmbedInteractive...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/foreach/index.md
--- title: Map.prototype.forEach() slug: Web/JavaScript/Reference/Global_Objects/Map/forEach page-type: javascript-instance-method browser-compat: javascript.builtins.Map.forEach --- {{JSRef}} The **`forEach()`** method of {{jsxref("Map")}} instances executes a provided function once per each key/value pair in this m...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/@@species/index.md
--- title: Map[@@species] slug: Web/JavaScript/Reference/Global_Objects/Map/@@species page-type: javascript-static-accessor-property browser-compat: javascript.builtins.Map.@@species --- {{JSRef}} The **`Map[@@species]`** static accessor property is an unused accessor property specifying how to copy `Map` objects. #...
0
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map
data/mdn-content/files/en-us/web/javascript/reference/global_objects/map/entries/index.md
--- title: Map.prototype.entries() slug: Web/JavaScript/Reference/Global_Objects/Map/entries page-type: javascript-instance-method browser-compat: javascript.builtins.Map.entries --- {{JSRef}} The **`entries()`** method of {{jsxref("Map")}} instances returns a new _[map iterator](/en-US/docs/Web/JavaScript/Reference/...
0