Strings In Depth14 / 19
Up next

Bang methods

s = "hello"
# non-bang methods return a new string
puts s.upcase
puts s
# bang methods mutate the receiver
s.upcase!
puts s
What you're solving

new string vs mutate in place