Sort Score
Result 10 results
Languages All
Labels All
Results 211 - 220 of 23,254 for

js

(0.07 sec)
  1. Code unit - MDN Web Docs Glossary: Definitions ...

    A code unit is the basic component used by a character encoding system (such as UTF-8 or UTF-16). A character encoding system uses one or more code units to encode a Unicode code point....using two Unicode code points: js const myString = "\u006E\u0303";...is called a surrogate pair : js const face = "🥵"; console.log(face...

    developer.mozilla.org/en-US/docs/Glossary/Code_...
  2. Window: languagechange event - Web APIs | MDN

    Learn about the languagechange event, including its type and syntax, code examples, specifications, and browser compatibility.... js addEventListener("languagechange"...in an addEventListener method: js window.addEventListener("languagechange"...

    developer.mozilla.org/en-US/docs/Web/API/Window...
  3. do...while - JavaScript | MDN

    The do...while statement creates a loop that executes a specified statement as long as the test condition evaluates to true. The condition is evaluated after executing the statement, resulting in the specified statement executing at least once.... Try it Syntax js do statement while (condition);...until i is no longer less than 5. js let result = ""; let i = 0; do...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  4. Window: afterprint event - Web APIs | MDN

    Learn about the afterprint event, including its type and syntax, code examples, specifications, and browser compatibility.... js addEventListener("afterprint"...Examples Using addEventListener() : js window.addEventListener("afterprint"...

    developer.mozilla.org/en-US/docs/Web/API/Window...
  5. Numbers and dates - JavaScript | MDN

    This chapter introduces the concepts, objects and functions used to work with and perform calculations using numbers and dates in JavaScript. This includes using numbers written in various bases including decimal, binary, and hexadecimal, as well as the use of the global Math object to perform a wide variety of mathematical operations on numbers.... Decimal numbers js 1234567890 42 Decimal literals...so, use the 0o prefix instead. js 0888 // 888 parsed as decimal...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  6. IIFE - MDN Web Docs Glossary: Definitions of We...

    An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined. The name IIFE is promoted by Ben Alman in his blog.... js (function () { // … })(); (()...declaration or a function expression. js (() => { // some initiation code...

    developer.mozilla.org/en-US/docs/Glossary/IIFE
  7. TypeError: can't convert BigInt to number - Jav...

    The JavaScript exception "can't convert BigInt to number" occurs when an arithmetic operation involves a mix of BigInt and Number values....numbers and BigInts in operations js const sum = 1n + 1; // TypeError:...one side to a BigInt or number. js const sum = 1n + BigInt(1); const...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  8. ReferenceError: "x" is not defined - JavaScript...

    The JavaScript exception "variable is not defined" occurs when there is a non-existent variable referenced somewhere....Examples Variable not declared js foo.substring(1); // ReferenceError:...substring() method will work. js const foo = "bar"; foo.substring(1);...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  9. Decrement (--) - JavaScript | MDN

    The decrement (--) operator decrements (subtracts one from) its operand and returns the value before or after the decrement, depending on where the operator is placed.... Try it Syntax js x-- --x Description The -- operator...decrement operators together. js --(--x); // SyntaxError: Invalid...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  10. Recursion - MDN Web Docs Glossary: Definitions ...

    The act of a function calling itself, recursion is used to solve problems that contain smaller sub-problems. A recursive function can receive two inputs: a base case (ends recursion) or a recursive case (resumes recursion).... js const getMaxCallStackSize = (i)...e(0)); Common usage examples js const factorial = (n) => { if...

    developer.mozilla.org/en-US/docs/Glossary/Recur...