Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubyfreeze and immutabilitySingle-choice MCQ

What does this print, and why does `dup` differ from `clone`?

s = "hello".freeze puts s.dup.frozen? puts s.clone.frozen?