Sort Score
Result 10 results
Languages All
Labels All
Results 141 - 150 of 23,333 for

js

(0.06 sec)
  1. SyntaxError: invalid regular expression flag "x...

    The JavaScript exception "invalid regular expression flag" occurs when the flags in a regular expression contain any flag that is not one of: d, g, i, m, s, u, v, or y. It may also be raised if the expression contains more than one instance of a valid flag, or when the u and v flags are used together....the regular expression literal: js const re = /pattern/flags; They...RegExp object (second parameter): js const re = new RegExp("pattern"...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  2. TypeError: BigInt value can't be serialized in ...

    The JavaScript exception "BigInt value can't be serialized in JsON" occurs when a BigInt is encountered in JsON.stringify with no custom serialization method provided....are not serializable in JSON: js const data = { a: 1n }; JSON...a number before stringifying: js const data = { a: 1n }; JSON...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  3. Work with the Bookmarks API - Mozilla | MDN

    Bookmarks enable users to collect and organize lists of web pages, so they can easily get back to their favorites. Using the Bookmarks API, your extensions can manipulate bookmarks in much the same way users can....js"] } } background.js As with any background...background script, background.js is run as soon as the extension is...

    developer.mozilla.org/en-US/docs/Mozilla/Add-on...
  4. let - JavaScript | MDN

    The let declaration declares re-assignable, block-scoped local variables, optionally initializing each to a value.... Try it Syntax js let name1; let name1 = value1;...way to access the variable). js if (true) let a = 1; // SyntaxError:...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  5. SyntaxError: missing } after function body - Ja...

    The JavaScript exception "missing } after function body" occurs when there is a syntax mistake when creating a function somewhere. Check if any closing curly braces or parenthesis are in the correct order....bracket in your function code: js function charge() { if (sunny)...promptBikeRide(); } Correct would be: js function charge() { if (sunny)...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  6. eval() - JavaScript | MDN

    The eval() function evaluates JavaScript code represented as a string and returns its completion value. The source is parsed as a script.... Try it Syntax js eval(script) Parameters script...re-assigning eval is a SyntaxError . js "use strict"; const eval = 1;...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  7. Logical NOT (!) - JavaScript | MDN

    The logical NOT (!) (logical complement, negation) operator takes truth to falsity and vice versa. It is typically used with boolean (logical) values. When used with non-Boolean values, it returns false if its single operand can be converted to true; otherwise, returns true.... Try it Syntax js !x Description Returns false...the ! (logical NOT) operator. js !true; // !t returns false !false;...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  8. Scope - MDN Web Docs Glossary: Definitions of W...

    The scope is the current context of execution in which values and expressions are "visible" or can be referenced. If a variable or expression is not in the current scope, it will not be available for use. Scopes can also be layered in a hierarchy, so that child scopes have access to parent scopes, but not vice versa....instance, the following is invalid: js function exampleFunction() {...the function, making it global: js const x = "declared outside function";...

    developer.mozilla.org/en-US/docs/Glossary/Scope
  9. Expressions and operators - JavaScript | MDN

    This chapter describes JavaScript's expressions and operators, including assignment, comparison, arithmetic, bitwise, logical, string, ternary and more.... For example: js const x = 1 + 2 * 3; const y...that expression. For example: js const obj = {}; obj.x = 3; console...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  10. Bitwise XOR assignment (^=) - JavaScript | MDN

    The bitwise XOR assignment (^=) operator performs bitwise XOR on the two operands and assigns the result to the left operand.... Try it Syntax js x ^= y Description x ^= y is...Using bitwise XOR assignment js let a = 5; // (00000000000000000000)...

    developer.mozilla.org/en-US/docs/Web/JavaScript...