Created
January 12, 2013 04:19
-
-
Save kmandreza/4516060 to your computer and use it in GitHub Desktop.
Create a method new_cat which takes as its input two strings. It should concatenate the strings and return the concatenated value, without modifying either of the input strings. For example, # One does not simply walk into...
new_cat("Mor", "dor") # => "Mordor"
Call this method and send your first and last name as arguments.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def new_cat(str1, str2) | |
str1 + str2 | |
end | |
puts new_cat("Mor","dor") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment