Sort Score
Result 10 results
Languages All
Labels All
Results 21 - 30 of 23,537 for

js

(0.09 sec)
  1. Destructuring assignment - JavaScript | MDN

    The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.... Try it Syntax js const [a, b] = array; const [a...create ad hoc packages of data. js const x = [1, 2, 3, 4, 5]; The...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  2. Spread syntax (...) - JavaScript | MDN

    The spread (...) syntax allows an iterable, such as an array or string, to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected. In an object literal, the spread syntax enumerates the properties of an object and adds the key-value pairs to the object being created.... Try it Syntax js myFunction(a, ...iterableObj...lack a Symbol.iterator method: js const obj = { key1: "value1"...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  3. Property accessors - JavaScript | MDN

    Property accessors provide access to an object's properties by using the dot notation or the bracket notation.... Try it Syntax js object.propertyName object[expression]...valid, while object.1 is not. js const variable = object.propertyName;...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  4. Exponentiation assignment (**=) - JavaScript | MDN

    The exponentiation assignment (**=) operator performs exponentiation on the two operands and assigns the result to the left operand.... Try it Syntax js x **= y Description x **= y is...Exponentiation assignment using numbers js let bar = 5; bar **= 2; // 25...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  5. Optional chaining (?.) - JavaScript | MDN

    The optional chaining (?.) operator accesses an object's property or calls a function. If the object accessed or function called using this operator is undefined or null, the expression short circuits and evaluates to undefined instead of throwing an error.... Try it Syntax js obj.val?.prop obj.val?.[expr]...references in between, such as: js const nestedProp = obj.first...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  6. Strict inequality (!==) - JavaScript | MDN

    The strict inequality (!==) operator checks whether its two operands are not equal, returning a Boolean result. Unlike the inequality operator, the strict inequality operator always considers operands of different types to be different.... Try it Syntax js x !== y Description The strict...always give the same result: js x !== y; !(x === y); For details...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  7. Division assignment (/=) - JavaScript | MDN

    The division assignment (/=) operator performs division on the two operands and assigns the result to the left operand.... Try it Syntax js x /= y Description x /= y is...Division assignment using numbers js let bar = 5; bar /= 2; // 2.5...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  8. Addition assignment (+=) - JavaScript | MDN

    The addition assignment (+=) operator performs addition (which is either numeric addition or string concatenation) on the two operands and assigns the result to the left operand.... Try it Syntax js x += y Description x += y is...Addition assignment using numbers js let bar = 5; bar += 2; // 7 Other...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  9. Multiplication (*) - JavaScript | MDN

    The multiplication (*) operator produces the product of the operands.... Try it Syntax js x * y Description The * operator...Multiplication using numbers js 2 * 2; // 4 -2 * 2; // -4 Infinity...

    developer.mozilla.org/en-US/docs/Web/JavaScript...
  10. Multiplication assignment (*=) - JavaScript | MDN

    The multiplication assignment (*=) operator performs multiplication on the two operands and assigns the result to the left operand.... Try it Syntax js x *= y Description x *= y is...Multiplication assignment using numbers js let bar = 5; bar *= 2; // 10...

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