All challenges
Multiple ChoiceBeginner 30s

Go: if with init

if x := f(); x > 0 { } — x is scoped to:
Options
  1. 1The whole function
  2. 2The if/else blocks
  3. 3The package
  4. 4The file

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