Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRubytruthiness only nil false falsySingle-choice MCQ

What does this method return when called as describe(nil)?

def describe(x) if x.nil? "got nil" elsif x == false "got false" else "got something" end end