What is concatenating string in ruby. In how many ways you can create a concatenating string.
Answer / Avinash Verma
Concatenation in Ruby refers to combining multiple strings together. There are several ways to concatenate strings:n1. Using the '+' operator: 'str1' + 'str2'n2. Using << for append operation: 'str' << 'append_string'n3. Using the 'n' operator for multi-line strings: 'str1nstr2'
| Is This Answer Correct ? | 0 Yes | 0 No |
What are ruby blocks.
What are the different environment variables present in the ruby?
What is the difference between “#==” and “#equal?”
what is the difference extend and include?
Who is the developer of Ruby?
Please explain what is mvc and why do we use it?
Explain about Float, Dig and Max?
What is the use of global variable $ in Ruby?
How does ruby deal with extremely large numbers?
Explain about the defined operator?
What is the scope of a local variable in ruby?
What does ruby name refers to?