Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptgenerators and yieldSingle-choice MCQ

What does `yield*` evaluate to in the outer generator here?

function* inner() { yield 1; return 'done'; } function* outer() { const r = yield* inner(); yield r; } console.log([...outer()]);