Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
joinNamesAndCapitalizeIt
func joinNamesAndCapitalizeIt(firstName: String, lastName: String) -> String {
let fullName: String = firstName + " " + lastName
return fullName.capitalized
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment