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