FREELessons: 65Length: 7.1 hours

• Overview
• Transcript

6.5 Generator Functions

Generators are a special type of function that can be paused during execution using a yield expression. Let’s learn how to pass values in to generators, and see what comes out when we use them.

Syntax

• function*
• yield