Answers for "how to write func in swift"

2

declare function in swift

func greet(person: String) -> String {
    let greeting = "Hello, " + person + "!"
    return greeting
}
Posted by: Guest on February-11-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language