Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRubyarrays push map selectSingle-choice MCQ

What does this code output?

p [1, nil, 2, false, 3].compact