DEV Community

Urgent Assistant on this IOS CODE, stuck

Kellington Chidza on October 24, 2019

Given the struct below in the editor, we want to add a method that returns the person’s full name. Declare a method named fullName() that returns a...
Collapse
 
charlesvu profile image
Charles Vu

You are missing the '\' before the opening parenthesis.

func getFullName() -> String {
    return "\(firstName) \(lastName)"
}