Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubypattern matching case inSingle-choice MCQ

In Ruby's `case/in`, a bare identifier binds rather than compares. What does this print?

expected = 5 input = 10 case input in ^expected puts "a" in expected puts "b: #{expected}" end