All challenges
Multiple ChoiceHard 30s

Generators

Choose the best answer for: function*
Options
  1. 1function* defines a generator that can yield multiple values
  2. 2function* is deprecated and replaced by async function syntax
  3. 3function* creates a class whose instances are iterable themselves
  4. 4function* is async and its yielded values settle as promises each

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle