{"size": 333, "ext": "js", "max_stars_repo_path": "demos/index_generators.js", "max_stars_repo_name": "training4developers/es2015_11282016", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "demos/index_generators.js", "max_issues_repo_name": "training4developers/es2015_11282016", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "demos/index_generators.js", "max_forks_repo_name": "training4developers/es2015_11282016", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 12.8076923077, "max_line_length": 31, "alphanum_fraction": 0.5885885886}
'use strict';

function* nums() {

	let count = 3;

	while(count--) {
		yield count;
		console.log('while loop');
	}

}

const gen  = nums();

console.log(gen.next());
console.log(gen.next());
console.log(gen.next());
console.log(gen.next());


// for (let num of nums()) {
// 	console.log(num);
// 	console.log('for of loop');
// }
