generators example javascript Example: function generator js function* name([param[, param[, ... param]]]) { statements }