All challenges
Multiple ChoiceBeginner 30s

Arrow Return

Choose the best answer for: implicit return in arrows
Options
  1. 1x => x*2 implicitly returns x*2 without braces
  2. 2Arrows can only return objects implicitly without braces
  3. 3Implicit return uses yield so the value is a generator
  4. 4Arrows always need return even for one-expression bodies

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