iOS Functions in Swift Functions in Swift Basic Function Syntax

Functions in Swift Code Challenge Trouble

I keep getting the following error message "Make sure you're adding a print statement to the body of the greeting function". Not sure what I am missing. Any help would be appreciated. Thanks!

// Enter your code below

func greeting() {
    let greeting = "Hello"

1 Answer

Try removing the constant and just printing "Hello"

func greeting() { print("Hello") }