func greet(person: String) -> String {
let greeting = "Hello, " + person + "!"
return greeting
}
func functionName(parameters)-> returnType {
// function body
}
// declare a function
func greet() {
print("Hello World!")
}
// call the function
greet()
print("Outside function")