0 votes
in Ruby by
What is concatenating string in Ruby. In how many ways you can create a concatenating string.

1 Answer

0 votes
by

Ruby concatenating string implies creating one string from multiple strings. You can join more than one string to form a single string by concatenating them.

There are four ways to concatenate Ruby strings into single string:

  • Using plus sign in between strings.
  • Using a single space in between strings.
  • Using << sign in between strings.
  • Using concat method in between strings.

Related questions

0 votes
asked May 3, 2021 in JAVA by Robindeniel
0 votes
asked Nov 14, 2021 in Ruby by sharadyadav1986
...