generator function in place of regular function code example Example: function generator js function* name([param[, param[, ... param]]]) { statements }