Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Shane Goodman
940 PointsExtra Credit Question
Write a function called fullName which takes two String parameters: firstName and lastName. It concatenates the two parameters and returns them as the fullName.
2 Answers

Marcus Leon
755 PointsThis is the way I did. I don't know if there a better way to do it.
'''func fullName(fullname fullName: String, lastName: String) -> String { return("Hello my name is (fullName) (lastName)")
}
fullName(fullname: "Marcus", lastName: "Leon" ) '''

Farhad Mohammad Afzali
5,007 PointsHello, you just need to return the concatenated string consisting of first name and last name only. Here is my solution:
func fullName(first firstName: String, last lastName:String) ->String { return firstName + lastName }
Hope it helps