Sort Score
Result 10 results
Languages All
Labels All
Results 371 - 380 of 23,252 for

js

(0.21 sec)
  1. Document: querySelector() method - Web APIs | MDN

    Learn about the Document.querySelector() method, including its syntax, code examples, specifications, and browser compatibility.... Syntax js querySelector(selectors) Parameters...the class myclass is returned: js const el = document.querySelector("...

    developer.mozilla.org/en-US/docs/Web/API/Docume...
  2. HTMLCanvasElement: toBlob() method - Web APIs |...

    Learn about the HTMLCanvasElement.toBlob() method, including its syntax, code examples, specifications, and browser compatibility.... Syntax js toBlob(callback) toBlob(callback...one created using the canvas. js const canvas = document.getE...

    developer.mozilla.org/en-US/docs/Web/API/HTMLCa...
  3. Symbol - JavaScript | MDN

    Symbol is a built-in object whose constructor returns a symbol primitive — also called a Symbol value or just a Symbol — that's guaranteed to be unique. Symbols are often used to add unique property keys to an object that won't collide with keys any other code might add to the object, and which are hidden from any mechanisms other code will typically use to access the object. That enables a form of weak encapsulation, or a weak form of information hiding....optional string as its description: js const sym1 = Symbol(); const...creates a new Symbol each time: js Symbol("foo") === Symbol("foo");...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  4. Looping code - Learn web development | MDN

    Programming languages are very useful for rapidly completing repetitive tasks, from multiple basic calculations to just about any other situation where you've got a lot of similar items of work to complete. Here we'll look at the loop structures available in JavaScript that handle such needs....that implements this example: js const btn = document.querySelector("button");...actually draws the 100 circles: js for (let i = 0; i < 100; i++)...

    developer.mozilla.org/en-US/docs/Learn/JavaScri...
  5. JavaScript typed arrays - JavaScript | MDN

    JavaScript typed arrays are array-like objects that provide a mechanism for reading and writing raw binary data in memory buffers.... js const uint8 = new Uint8Array([1...representation of any number: js function toBinary( x, { type...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  6. Locale-sensitive text segmentation in JavaScrip...

    Learn how to use Intl.Segmenter for locale-sensitive text segmentation in JavaScript to simplify localization, count words or sentences in different languages, and more....to split by space characters: js const str = "How many words....Intl namespace is as follows: js new Intl.Segmenter(locales, options);...

    developer.mozilla.org/en-US/blog/javascript-int...
  7. Safely insert external content into a page - Mo...

    There are times when you might want or need to include content from an external source in your extension. But, there is the risk that the source may have malicious scripts embedded in it—added by either the developer of the source or by a malicious third-party....their content using textContent: js let data = JSON.parse(responseText);...safe. Take the following code: js let data = JSON.parse(responseText);...

    developer.mozilla.org/en-US/docs/Mozilla/Add-on...
  8. Address bar suggestions - Mozilla | MDN

    Using the omnibox API, extensions can customize the suggestions offered in the browser address bar's drop-down when the user enters a keyword....hint on how to use the feature: js browser.omnibox.setDefaultSuggestion({..."hello world" | "path:omnibox.js onInputChanged")`, }); You can...

    developer.mozilla.org/en-US/docs/Mozilla/Add-on...
  9. HTMLCanvasElement: toDataURL() method - Web API...

    Learn about the HTMLCanvasElement.toDataURL() method, including its syntax, code examples, specifications, and browser compatibility.... Syntax js toDataURL() toDataURL(type) toDataURL(type...canvas with the following lines: js const canvas = document.getE...

    developer.mozilla.org/en-US/docs/Web/API/HTMLCa...
  10. PerformanceServerTiming - Web APIs | MDN

    Learn about the PerformanceServerTiming interface, including its properties and methods, specifications and browser compatibility....js server like this: js const http = require("http");...before the observer creation. js const observer = new PerformanceObserver((list)...

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