Sort Score
Result 10 results
Languages All
Labels All
Results 181 - 190 of 23,281 for

js

(0.07 sec)
  1. Strict equality (===) - JavaScript | MDN

    The strict equality (===) operator checks whether its two operands are equal, returning a Boolean result. Unlike the equality operator, the strict equality operator always considers operands of different types to be different.... Try it Syntax js x === y Description The strict...Comparing operands of the same type js "hello" === "hello"; // true...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  2. TypeError: "x" is read-only - JavaScript | MDN

    The JavaScript strict mode-only exception "is read-only" occurs when a global variable or object property that was assigned to is a read-only property.... js "use strict"; const obj = Object...redefine a mathematical constant. js "use strict"; Math.PI = 4; //...

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

    La propriété localStorage vous permet d'accéder à un objet local Storage. Le localStorage est similaire au sessionStorage. La seule différence : les données stockées dans le localStorage n'ont pas de délai d'expiration, alors que les données stockées dans le sessionStorage sont nettoyées quand la session navigateur prend fin — donc quand on ferme le navigateur.... Syntaxe js monStockage = localStorage; Valeur...utilisant Storage.setItem() . js localStorage.setItem("monChat"...

    developer.mozilla.org/fr/docs/Web/API/Window/lo...
  4. this - JavaScript | MDN

    The this keyword refers to the context where a piece of code, such as a function's body, is supposed to run. Most typically, it is used in object methods, where this refers to the object that the method is attached to, thus allowing the same method to be reused on different objects.... Try it Syntax js this Value In non–strict mode...refers to obj . For example: js function getThis() { return this;...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  5. Creating a cross-browser video player - Web med...

    This article describes a simple HTML video player that uses the Media and Fullscreen APIs. As well as working fullscreen, the player features custom controls rather than just using the browser defaults. The player controls themselves won't be styled beyond the basics required to get them working; full styling of the player will be taken care of in a future article.... js const supportsVideo = !!document...to HTML elements are required: js const videoContainer = document...

    developer.mozilla.org/en-US/docs/Web/Media/Audi...
  6. TaskController - Web APIs | MDN

    Learn about the TaskController interface, including its constructor, properties, and methods, code examples, specifications, and browser compatibility.... js // Create a TaskController, setting...target to get the new priority. js // Listen for 'prioritychange'...

    developer.mozilla.org/en-US/docs/Web/API/TaskCo...
  7. Window: setTimeout() method - Web APIs | MDN

    Learn about the Window.setTimeout() method, including its syntax, code examples, specifications, and browser compatibility.... Syntax js setTimeout(code) setTimeout(code...code executes 1 second later. js setTimeout(() => { console.log("Delayed...

    developer.mozilla.org/en-US/docs/Web/API/Window...
  8. extends - JavaScript | MDN

    The extends keyword is used in class declarations or class expressions to create a class that is a child of another class.... Try it Syntax js class ChildClass extends ParentClass...so they cannot be subclassed. js function OldStyleClass() { this...

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

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

    developer.mozilla.org/en-US/docs/Web/API/Window...
  10. Remainder (%) - JavaScript | MDN

    The remainder (%) operator returns the remainder left over when one operand is divided by a second operand. It always takes the sign of the dividend.... Try it Syntax js x % y Description The % operator...Remainder with positive dividend js 13 % 5; // 3 1 % -2; // 1 1 %...

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