A

Admin • 833K Points
Coach

Q. 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)
  • Correct Answer - Option(B)
  • Views: 27
  • Filed under category Ruby
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.