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

What is the value of `nums` after this code runs?

nums = [1, 2, 3] doubled = nums.map { |n| n * 2 } p nums