$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · hard · #207

Complete the function

// produce values lazily
function* ids() {
  let i = 0;
  while (true) ____ i++;
}

Answer: yield (also accepted: yield, yield())

yield hands one value to the caller and pauses the generator.
Play Problem Solving ▸