Ruby - String Operations
What is wrong with this Ruby code?
text = "example".freeze text[1] = "A"
text = "example".freeze text[1] = "A"
text is frozen and cannot be changed.text.frozen? is true before modification [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions