tgoop.com/js_test/4801
Create:
Last Update:
Last Update:
❗️Что будет на выходе:
function* gen() {
yield* ['x', 2, 3].map(x => x * 2);
}
const iterator = gen();
console.log(iterator.next().value);
console.log(iterator.next().value);
console.log(iterator.next().value);
console.log(iterator.next().value);
Ответ:
4
6
undefined
BY JavaScript test
Share with your friend now:
tgoop.com/js_test/4801