

What does this program print?
Trace the program the way the computer would, then make your call before running anything.
function* g() {
yield 1;
yield 2;
}
const it = g();
console.log(it.next(), it.next().value, it.next().done);

Trace the program the way the computer would, then make your call before running anything.
function* g() {
yield 1;
yield 2;
}
const it = g();
console.log(it.next(), it.next().value, it.next().done);