What is the correct way to concatenate two strings in Ruby?
A. str1.concat(str2)
B. str1 + str2
C. str1.append(str2)
D. str1.combine(str2)
Answer: Option B
Related Questions on Data Types and Variables in Ruby
A. str1.concat(str2)
B. str1 + str2
C. str1.append(str2)
D. str1.combine(str2)
Answer: Option B
Join The Discussion