Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJesse Lopez
1,870 PointsNamed Parameters
Having trouble with this. what does it mean to "Call the greeting"?
func function(#jerry: String) ->String {
println("Hello \(jerry)")
}
1 Answer
Dan Oswalt
23,438 PointsHi, the a function should have this form in general:
func myFunction(namedParameter: String) -> String {
//code
}
Except with myFunction and namedParameter renamed whatever reusable name you want to use.
Calling a function means to implement it in your code.:
myFunction(value);
Sorry, can't really help more without giving the answer!