An alternative way for string concatenation.
str1 = "This is a new string"
str2 = ". This is a new sentence."
result = str1 << str2
puts result
Output:
This is a new string. This is a new sentence.
An alternative way for string concatenation.
str1 = "This is a new string"
str2 = ". This is a new sentence."
result = str1 << str2
puts result
Output:
This is a new string. This is a new sentence.
For further actions, you may consider blocking this person and/or reporting abuse
Mike Young -
Mike Young -
Ankit Kumar Sinha -
Material360 -
Top comments (0)