Sort Score
Result 10 results
Languages All
Labels All
Results 581 - 590 of 23,249 for

js

(0.1 sec)
  1. GPUCompilationInfo - Web APIs | MDN

    Learn about the GPUCompilationInfo interface, including its properties, code examples, specifications, and browser compatibility....declaration in our shader code: js const shaders = ` struct VertexOut...information about the resulting error: js async function init() { // ....

    developer.mozilla.org/en-US/docs/Web/API/GPUCom...
  2. HTMLMediaElement: loadstart event - Web APIs | MDN

    Learn about the loadstart event, including its type and syntax, code examples, specifications, and browser compatibility.... js addEventListener("loadstart"...display: block; } JavaScript js const loadVideo = document.q...

    developer.mozilla.org/en-US/docs/Web/API/HTMLMe...
  3. HTMLMediaElement: progress event - Web APIs | MDN

    Learn about the progress event, including its type and syntax, code examples, specifications, and browser compatibility.... js addEventListener("progress",...display: block; } JavaScript js const loadVideo = document.q...

    developer.mozilla.org/en-US/docs/Web/API/HTMLMe...
  4. Vibration API - Web APIs | MDN

    Most modern mobile devices include vibration hardware, which lets software code provide physical feedback to the user by causing the device to shake. The Vibration API offers Web apps the ability to access this hardware, if it exists, and does nothing if the device doesn't support it....consisting of only one value: js navigator.vibrate(200); navigator...not be vibrating. For example: js navigator.vibrate([200, 100,...

    developer.mozilla.org/en-US/docs/Web/API/Vibrat...
  5. XRInputSourcesChangeEvent - Web APIs | MDN

    Learn about the XRInputSourcesChangeEvent interface, including its constructor, properties, and methods, code examples, specifications, and browser compatibility.... js xrSession.addEventListener("inputsourceschange"...oninputsourceschange event handler: js xrSession.oninputsourceschange...

    developer.mozilla.org/en-US/docs/Web/API/XRInpu...
  6. SyntaxError: a declaration in the head of a for...

    The JavaScript exception "a declaration in the head of a for-of loop can't have an initializer" occurs when the head of a for...of loop contains an initializer expression such as for (const i = 0 of iterable). This is not allowed in for-of loops....Examples Invalid for-of loop js const iterable = [10, 20, 30];...to the loop body, for example. js const iterable = [10, 20, 30];...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  7. XRTransientInputHitTestSource - Web APIs | MDN

    Learn about the XRTransientInputHitTestSource interface, including its properties and methods, code examples, specifications, and browser compatibility.... js const xrSession = navigator.xr...XRTransientInputHitT object to null . js transientHitTestSour.cancel();...

    developer.mozilla.org/en-US/docs/Web/API/XRTran...
  8. TypeError: can't set prototype of this object -...

    The JavaScript exception "can't set prototype of this object" occurs when attempting to set the prototype of an object, but the object's prototype is frozen, either by being a built-in immutable prototype object, or by being non-extensible....prototype : js Object.setPrototypeOf(Object...change its prototype either: js const obj = {}; Object.preventExtensions(obj);...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  9. SyntaxError: setter functions must have one arg...

    The JavaScript exception "setter functions must have one argument" occurs when a setter is declared and the parameter list is not consisted of exactly one formal parameter.... Examples Invalid cases js const obj = { set value() { this...Math.random(); }, }; Valid cases js // You must declare one parameter...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  10. GPU - Web APIs | MDN

    Learn about the GPU interface, including its properties and methods, code examples, specifications, and browser compatibility....Requesting an adapter and a device js async function init() { if (...with the optimal texture format js const canvas = document.quer...

    developer.mozilla.org/en-US/docs/Web/API/GPU