Ruby - String Operations
How can you safely duplicate a frozen string to modify the copy without affecting the original?
dup to create a mutable copydup method creates a new string object that is not frozen and can be modified.dup method to create a mutable copy. -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions