Sort Score
Result 10 results
Languages All
Labels All
Results 511 - 520 of 23,251 for

js

(0.19 sec)
  1. Adding a new todo form: Vue events, methods, an...

    Excellent. We can now add todo items to our form! Our app is now starting to feel interactive, but one issue is that we've completely ignored its look and feel up to now. In the next article, we'll concentrate on fixing this, looking at the different ways Vue provides to style components....inside your <script> element: js import ToDoForm from "./components/ToDoForm...object so that it looks like this: js components: { ToDoItem, ToDoForm...

    developer.mozilla.org/en-US/docs/Learn/Tools_an...
  2. SyntaxError: import declarations may only appea...

    The JavaScript exception "import declarations may only appear at top level of a module" occurs when an import declaration is not at the top level of a module. This might be because the import declaration is nested in other constructs (functions, blocks, etc.), or more often because the current file is not treated as a module.... js if (writeOutput) { import fs...level, or use dynamic import. js if (writeOutput) { import("fs")...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  3. Element: attachShadow() method - Web APIs | MDN

    Learn about the Element.attachShadow() method, including its syntax, code examples, specifications, and browser compatibility.... Syntax js attachShadow(options) Parameters...example using Element.shadowRoot : js element.attachShadow({ mode:...

    developer.mozilla.org/en-US/docs/Web/API/Elemen...
  4. XRAnchor - Web APIs | MDN

    Learn about the XRAnchor interface, including its properties and methods, code examples, specifications, and browser compatibility....session with anchors enabled js navigator.xr.requestSession("immersive-ar"...createAnchor() to create an anchor. js frame.createAnchor(anchorPose...

    developer.mozilla.org/en-US/docs/Web/API/XRAnchor
  5. SyntaxError: 'arguments'/'eval' can't be define...

    The JavaScript strict mode-only exception "'arguments' can't be defined or assigned to in strict mode code" or "'eval' can't be defined or assigned to in strict mode code" occurs when attempting to create a binding called arguments or eval, or assign to such a name.... Examples Invalid cases js "use strict"; const arguments...log(arguments); } Valid cases js "use strict"; const args = [1...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  6. HTMLElement: cut event - Web APIs | MDN

    Learn about the cut event, including its type, syntax, and properties, specifications and browser compatibility.... js addEventListener("cut", (event)...<h3>Log:</h3> <p id="log"></p> JavaScript js function logCopy(event) { log...

    developer.mozilla.org/en-US/docs/Web/API/HTMLEl...
  7. Delta - MDN Web Docs Glossary: Definitions of W...

    The term delta refers to the difference between two values or states....compute the delta like this: js let deltaX = newX - oldX; More...update a saved previous condition: js let newX = oldX + deltaX; For...

    developer.mozilla.org/en-US/docs/Glossary/Delta
  8. Type coercion - MDN Web Docs Glossary: Definiti...

    Type coercion is the automatic or implicit conversion of values from one data type to another (such as strings to numbers). Type conversion is similar to type coercion because they both convert values from one data type to another with one key difference — type coercion is implicit whereas type conversion can be either implicit or explicit.... Examples js const value1 = "5"; const value2...number using the Number() method: js sum = Number(value1) + value2;...

    developer.mozilla.org/en-US/docs/Glossary/Type_...
  9. SyntaxError: duplicate capture group name in re...

    The JavaScript exception "duplicate capture group name in regular expression" occurs when a regular expression pattern contains two or more named capturing groups with the same name, and these capture groups could be matched at the same time....Invalid cases js /(?<name>\w+) (?<name>\w+)/; Valid cases js /(?<firstName>\w+)...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  10. SyntaxError: invalid unicode escape in regular ...

    The JavaScript exception "invalid unicode escape in regular expression" occurs when the \c and \u character escapes are not followed by valid characters.... Examples Invalid cases js /\u{123456}/u; // Unicode code.../\c1/u; // Not a letter Valid cases js /\u0065/u; // Lowercase "e" /\u{1F600}/u;...

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