Quotes help make search much faster. Example: "Practice Makes Perfect"

Monday, December 17, 2012

LearnStreet Sample Solution to Lesson 6 Exercise 9



def name_length(first_name, last_name)
#your code here
    fnlength = first_name.length
    lnlength = last_name.length
    "#{first_name}'s first name has #{fnlength} letters and last name has #{lnlength} letters"
end

name_length("Joe", "Smith")

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts