Skip to content

Instantly share code, notes, and snippets.

Created April 26, 2017 16:20
What would you like to do?
Generators Simple pause resume - Coding Blast -
function* print() {
let a = 5 - (yield 3);
console.log('a:', a);
let generator = print();
let iteratorResult =; // sending value in next here gets ignored during first next
iteratorResult =;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment