Complete the function
// produce values lazily
function* ids() {
let i = 0;
while (true) ____ i++;
}
Answer: yield
yield hands one value to the caller and pauses the generator.
Play Problem Solving ▸
// produce values lazily
function* ids() {
let i = 0;
while (true) ____ i++;
}
Answer: yield