Exercise 4: Prepend a String
Explore how to prepend one string to another in Ruby without using concatenation. Learn to utilize Ruby string methods effectively through hands-on practice, enhancing your understanding of string manipulation in Ruby.
We'll cover the following...
We'll cover the following...
Problem statement
Skim through the Ruby documentation for strings, and look for a method that prepends one string to another string. Using that method, prepend the first string with the other.
Note: Do not use concatenation to solve this challenge.
Example
string1 = "Machine ", string2 = "Learning"
result = "Machine Learning"