Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
The GeneratorFunction object provides methods for generator functions. In JavaScript, every generator function is actually a GeneratorFunction object.
GeneratorFunction.prototype.constructor
The constructor function that created the instance object. For GeneratorFunction instances, the initial value is the GeneratorFunction constructor.
GeneratorFunction.prototype.prototype
The constructor function that created the instance object. For GeneratorFunction instances, the initial value is the GeneratorFunction constructor.
All generator functions share the same prototype property, which is Generator.prototype. Each generator function created with the function* syntax or the GeneratorFunction() constructor also has its own prototype propert
The initial value of the [Symbol.toStringTag] property is the string "GeneratorFunction". This property is used in Object.prototype.toString().
The initial value of the [Symbol.toStringTag] property is the string "GeneratorFunction". This property is used in Object.prototype.toString().
This page was last modified on Jul 10, 2025 by MDN contributors.