Concatenate (join) strings together, using a + : String Concatenation « String « Ruby






Concatenate (join) strings together, using a +



puts "It " + "was " + "too " + "Cary " + "Grant!" 

 








Related examples in the same category

1.Append one string to another with the + method:
2.append a string with the << method:
3.Using the + symbol concatenates the two strings "
4.inserting value of a variable in a string
5.Push several strings into one
6.Encode command in string