Monday, April 27, 2015

swift - Function with parameter and return value

  • func sayHello(personName: String) -> String {
  • let greeting = "Hello, " + personName + "!"
  • return greeting
  • }

No comments:

Post a Comment