The function* declaration (function keyword followed by an asterisk) defines a generator function, which returns a Generator object.