Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRubyblocks do end and bracesSingle-choice MCQ

Why does this line raise a syntax error?

puts [1, 2, 3].map { |x| x * 2 } if false puts foo 1 { |n| n }