Sort Score
Result 10 results
Languages All
Labels All
Results 271 - 280 of 22,097 for

js

(0.05 sec)
  1. NavigatorUAData - Web APIs | MDN

    Learn about the NavigatorUAData interface, including its properties and methods, code examples, specifications, and browser compatibility.... js console.log(navigator.userAgentData...information is printed to the console. js navigator.userAgentData .getHighEntropyValues([...

    developer.mozilla.org/en-US/docs/Web/API/Naviga...
  2. MediaSourceHandle - Web APIs | MDN

    Learn about the MediaSourceHandle interface, including its properties and methods, code examples, specifications, and browser compatibility....thread) via a postMessage() call: js // Inside dedicated worker let...property, and play the video: js worker.addEventListener("message"...

    developer.mozilla.org/en-US/docs/Web/API/MediaS...
  3. HTMLIFrameElement: contentWindow property - Web...

    Learn about the HTMLIFrameElement.contentWindow property, including its type, code examples, specifications, and browser compatibility.... js const iframe = document.querySelector("iframe")...iframe's contentWindow property. js const expectedOrigin = "https://example...

    developer.mozilla.org/en-US/docs/Web/API/HTMLIF...
  4. AsyncIterator - JavaScript | MDN

    An AsyncIterator object is an object that conforms to the async iterator protocol by providing a next() method that returns a promise fulfilling to an iterator result object. The AsyncIterator.prototype object is a hidden global object that all built-in async iterators inherit from. It provides an [Symbol.asyncIterator]() method that returns the async iterator object itself, making the async iterator also async iterable....obtained with the following code: js const AsyncIteratorPrototy =...them in a for await...of loop: js const asyncIterator = (async...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  5. Navigator: languages property - Web APIs | MDN

    Learn about the Navigator.languages property, including its type, code examples, specifications, and browser compatibility....languages js navigator.language; // "en-US"...locale supported by Intl is used: js const date = new Date("2012-05-24");...

    developer.mozilla.org/en-US/docs/Web/API/Naviga...
  6. VisibilityStateEntry - Web APIs | MDN

    Learn about the VisibilityStateEntry interface, including its properties and methods, code examples, specifications, and browser compatibility....performance entries to the console: js function getVisibilityStateEn()...before the first contentful paint: js function wasHiddenBeforeFirst()...

    developer.mozilla.org/en-US/docs/Web/API/Visibi...
  7. ResizeObserver - Web APIs | MDN

    Learn about the ResizeObserver interface, including its constructor, properties, and methods, code examples, specifications, and browser compatibility....The JavaScript looks like so: js const h1Elem = document.querySelector("h1");...console repeating every frame: js const divElem = document.querySelector("body...

    developer.mozilla.org/en-US/docs/Web/API/Resize...
  8. EyeDropper - Web APIs | MDN

    Learn about the EyeDropper interface, including its constructor and methods, code examples, specifications, and browser compatibility....id="result"></span> JavaScript js document.getElementById("start-button")...id="result"></span> JavaScript js document.getElementById("start-button")...

    developer.mozilla.org/en-US/docs/Web/API/EyeDro...
  9. How to write in Markdown - The MDN Web Docs pro...

    This page describes how we use Markdown to write documentation on MDN Web Docs. We have chosen GitHub-Flavored Markdown (GFM) as a baseline, and added some extensions to support some of the things we need to do on MDN that aren't readily supported in GFM....Programming Languages JavaScript js - JavaScript ts - TypeScript...URIs and URLs For example: md ```js const greeting = "I will get...

    developer.mozilla.org/en-US/docs/MDN/Writing_gu...
  10. Set - JavaScript | MDN

    The Set object lets you store unique values of any type, whether primitive values or object references....keys when used in set methods: js const a = new Set([1, 2, 3]);...Examples Using the Set object js const mySet1 = new Set(); mySet1...

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