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

Using `**nil` in a hash pattern, what is the result?

case {name: "Ann", age: 30} in {name: String, **nil} puts "matched" else puts "no match" end