Sort Score
Result 10 results
Languages All
Labels All
Results 61 - 70 of 22,097 for

js

(0.05 sec)
  1. URIError: malformed URI sequence - JavaScript |...

    The JavaScript exception "malformed URI sequence" occurs when URI encoding or decoding wasn't successful....a high-low pair, for example: js encodeURI("\uD800"); // "URIError:...high-low pair is OK. For example: js encodeURI("\uD800\uDFFF"); //...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  2. decodeURIComponent() - JavaScript | MDN

    The decodeURIComponent() function decodes a Uniform Resource Identifier (URI) component previously created by encodeURIComponent() or by a similar routine.... Try it Syntax js decodeURIComponent(encodedURI)...Decoding a Cyrillic URL component js decodeURIComponent("JavaScri...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  3. URLSearchParams - Web APIs | MDN

    Learn about the URLSearchParams interface, including its constructor, properties, and methods, code examples, specifications, and browser compatibility....following two lines are equivalent: js for (const [key, value] of mySearchParams)...contained in this object. Examples js const paramsString = "q=URLUtils...

    developer.mozilla.org/en-US/docs/Web/API/URLSea...
  4. Object initializer - JavaScript | MDN

    An object initializer is a comma-delimited list of zero or more pairs of property names and associated values of an object, enclosed in curly braces ({}). Objects can also be initialized using Object.create() or by invoking a constructor function with the new operator.... Try it Syntax js o = { a: "foo", b: 42, c: {}...JSON, it's a normal property. js console.log(JSON.parse('{ "__proto__":...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  5. CSS: escape() static method - Web APIs | MDN

    Learn about the static CSS.escape() method, including its syntax, code examples, specifications, and browser compatibility.... Syntax js CSS.escape(str) Parameters str...string. Examples Basic results js CSS.escape(".foo#bar"); // "\\...

    developer.mozilla.org/en-US/docs/Web/API/CSS/es...
  6. Logical OR assignment (||=) - JavaScript | MDN

    The logical OR assignment (||=) operator only evaluates the right operand and assigns to the left if the left operand is falsy.... Try it Syntax js x ||= y Description Logical OR...error, despite x being const : js const x = 1; x ||= 2; Neither...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  7. 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...
  8. 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...
  9. 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...
  10. 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