Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyfrozen string dedupSingle-choice MCQ

A file begins with the magic comment `# frozen_string_literal: true`. How does this change what the YARV compiler emits for a bare string literal like `"x"`, and what is the runtime consequence?

# frozen_string_literal: true def tag; "x"; end # tag called many times