Generators can be created in multiple ways
- the most common way is by adding
*
afterfunction
- as a function expression, by adding a
*
afterfunction
- inside an object by prefixing the function name with
*
- computed generator names, are just prefixed with a
*
- inside a class the same way