Deviopath › Swift

Say Hello

Easy · Strings

A Swift function starts with func, then the name, parameters, and a return type after ->. _ before a parameter name means callers skip the label. \(name) interpolates a value into a string.

Write greet(_:) that returns "Hello, <name>!".

Next: Add Two Numbers