Question 40 of 10040%
40
What does each of these four console.log calls print?
function* gen() {
yield 1;
yield 2;
return 3;
}
const it = gen();
console.log(it.next());
console.log(it.next());
console.log(it.next());
console.log(it.next());
40/100