Sort Score
Result 10 results
Languages All
Labels All
Results 141 - 150 of 23,312 for

js

(0.36 sec)
  1. Wildcard: . - JavaScript | MDN

    A wildcard matches all characters except line terminators. It also matches line terminators if the s flag is set.... For example: js /../.test("😄"); // true; matches...Markdown page in the form # Title : js function parseTitle(entry) {...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  2. Document: getElementsByClassName() method - Web...

    Learn about the Document.getElementsByClassName() method, including its syntax, code examples, specifications, and browser compatibility.... Syntax js getElementsByClassNa(names) Parameters...that have a class of 'test': js document.getElementsByClassNa("test");...

    developer.mozilla.org/en-US/docs/Web/API/Docume...
  3. let - JavaScript | MDN

    The let declaration declares re-assignable, block-scoped local variables, optionally initializing each to a value.... Try it Syntax js let name1; let name1 = value1;...way to access the variable). js if (true) let a = 1; // SyntaxError:...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  4. Work with the Bookmarks API - Mozilla | MDN

    Bookmarks enable users to collect and organize lists of web pages, so they can easily get back to their favorites. Using the Bookmarks API, your extensions can manipulate bookmarks in much the same way users can....js"] } } background.js As with any background...background script, background.js is run as soon as the extension is...

    developer.mozilla.org/en-US/docs/Mozilla/Add-on...
  5. SyntaxError: missing } after function body - Ja...

    The JavaScript exception "missing } after function body" occurs when there is a syntax mistake when creating a function somewhere. Check if any closing curly braces or parenthesis are in the correct order....bracket in your function code: js function charge() { if (sunny)...promptBikeRide(); } Correct would be: js function charge() { if (sunny)...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  6. eval() - JavaScript | MDN

    The eval() function evaluates JavaScript code represented as a string and returns its completion value. The source is parsed as a script.... Try it Syntax js eval(script) Parameters script...re-assigning eval is a SyntaxError . js "use strict"; const eval = 1;...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  7. Logical NOT (!) - JavaScript | MDN

    The logical NOT (!) (logical complement, negation) operator takes truth to falsity and vice versa. It is typically used with boolean (logical) values. When used with non-Boolean values, it returns false if its single operand can be converted to true; otherwise, returns true.... Try it Syntax js !x Description Returns false...the ! (logical NOT) operator. js !true; // !t returns false !false;...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  8. Expressions and operators - JavaScript | MDN

    This chapter describes JavaScript's expressions and operators, including assignment, comparison, arithmetic, bitwise, logical, string, ternary and more.... For example: js const x = 1 + 2 * 3; const y...that expression. For example: js const obj = {}; obj.x = 3; console...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  9. Scope - MDN Web Docs Glossary: Definitions of W...

    The scope is the current context of execution in which values and expressions are "visible" or can be referenced. If a variable or expression is not in the current scope, it will not be available for use. Scopes can also be layered in a hierarchy, so that child scopes have access to parent scopes, but not vice versa....instance, the following is invalid: js function exampleFunction() {...the function, making it global: js const x = "declared outside function";...

    developer.mozilla.org/en-US/docs/Glossary/Scope
  10. Bitwise XOR assignment (^=) - JavaScript | MDN

    The bitwise XOR assignment (^=) operator performs bitwise XOR on the two operands and assigns the result to the left operand.... Try it Syntax js x ^= y Description x ^= y is...Using bitwise XOR assignment js let a = 5; // (00000000000000000000)...

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