function* gen() { yield 1; yield 2; yield 3; } var g = gen(); // "Generator { }"
// define a generator function function* generator_function() { ... .. ... } // creating a generator const generator_obj = generator_function();