[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Operators/function* [Back]  [Original]

function* expression - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

function* expression

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2016 ..

function* - .

In this article

function* []([1[, 2[, ..., N]]]) {
   
}

. , . .

N

, . 255 .

, .

function* function*, . function* function* , function* . .

- x. :

js
var x = function* (y) {
  yield y * y;
};

Specification
ECMAScript 2027 LanguageSpecification
# sec-generator-function-definitions


Web Proxy Viewer  |  New URL  |  Original Page