Click in order · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript

Building a Generator

Arrange the elements to create a simple generator:

Items to click

  • function*
  • { yield
  • dinoGen()
  • 'T-Rex'; }

You can check the correct answer by solving this task in the CodeWorlds game.