All challenges
Multiple ChoiceIntermediate 30s

yield Keyword

Choose the best answer for: yield
Options
  1. 1yield is the same as return and ends the enclosing function
  2. 2yield creates a Promise that resolves on the next microtask
  3. 3yield terminates the function and discards the pending value
  4. 4yield pauses generator execution and returns a value

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