| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Operators | [Back] [Original] |
Get to know MDN better
JavaScript
JavaScript
thisthis
functionfunction
classclass
function*function* Generator
yield(Generator)
yield*(Generator) (Iterable)
async function*async
await/
[]/
{}/
/ab+c/i( )
(object.property and object["property"])
newnew (Constructor)
new.target new (Constructor)
supersuper (Constructor)
...objThe spread operator allows an expression to be expanded in places where multiple arguments (for function calls) or multiple elements (for array literals) are expected.
//
()
Boolean
=> is not an operator, but the notation for Arrow functions.
Boolean
32 (32 ) JavaScript
() (Boolean)
The function keyword can be used to define a legacy generator function inside an expression. To make the function a legacy generator, the function body should contains at least one yield expression.
The expression closure syntax is a shorthand for writing simple function.
[for (x of y) x]Array comprehensions.
(for (x of y) y)Generator comprehensions.
This page was last modified on 2026526 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |