Daniel White
0
Q:

replace strring by another string ruby

myString = "Welcome to JavaScript!"

myString["JavaScript"]= "Ruby"

puts myString
=> "Welcome to Ruby!"
0

New to Communities?

Join the community