Yield Statements Lab
Easy
33.3% Acceptance
In this lab, you will be working with JavaScript generator functions and yield
statements. You need to create a generator function that yields numbers from 0 to 4. The generator function should use the yield
statement, and you will have to iterate over the generator function output to print the yielded numbers. Make sure you are familiar with JavaScript generator functions, the function*
syntax, and using yield
statements.