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

Given that there is no `# frozen_string_literal` magic comment, what does this print?

a = "abc".freeze b = "abc".freeze c = ("ab" + "c").freeze puts [a.equal?(b), a.equal?(c)].inspect