Medium
This question is a daily question and will count towards your daily streak.
What will the following JavaScript code output?
1function* generateNumbers() {2 yield 1;3 yield 2;4 yield 3;5}67const iterator = generateNumbers();8console.log(iterator.next().value);9console.log(iterator.next().value);10console.log(iterator.next().value);11console.log(iterator.next().value);