generator function can have method calls code example Example: function generator js function* name([param[, param[, ... param]]]) { statements }