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 trialAndreas Parsley
442 PointsThis doesn't make sense... I've inputed the necessary information, What else is there to input here?
I don't know what else to place in here...
What else do you need to place the code?
func greeting() {
println("Hello")
}
greeting()
1 Answer
Meek D
3,457 PointsIf the task asked you to modify the function and assign a parameter to it you would have done this
func greeting(data: String ){
println("Hello \(data))")
}
then you call it greeting("Apple ") Therefore the result should be hello Apple. Hope that helps.
Meek D
3,457 PointsMeek D
3,457 Pointswhat is the question asked ?