function*interrogate() {constname=yield"What is your name?";constcolor=yield"What is your favorite color?";return`${name}'s favorite color is ${color}.`; }constit=interrogate();it.next(); // {value: "What is your name?", done: false}it.next('Ethan'); // {value: "What is your favorite color?", done: false}it.next('orange'); // {value: "Ethan's favorite color is orange.", done: true}