Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
The yield operator is used to pause and resume a generator function.
The value to yield from the generator function via the iterator protocol. If omitted, undefined is yielded.
The yield keyword pauses generator function execution and the value of the expression following the yield keyword is returned to the generator's caller. It can be thought of as a generator-based version of the return key
This page was last modified on Jul 8, 2025 by MDN contributors.