Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubyProc vs lambda usageSingle-choice MCQ

What does `puts demo` output?

def demo p = Proc.new { return 10 } p.call 20 end