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 trialom patel
Courses Plus Student 1,420 Pointshelp please
Call the greeting function and pass it the String "Jerry"
func greeting(person: String) {
println("Hello \(person)")
}
6 Answers
om patel
Courses Plus Student 1,420 Pointsyour answer is not working
om patel
Courses Plus Student 1,420 Pointsi didn't get you
Meek D
3,457 PointsI just made a correction to the answer that I just provided . Check it out
Kieran Tross
8,266 PointsDid the same thing. that doesn't work.
greeting("Jerry")
anyone have any suggestions?
Kieran Tross
8,266 Pointsok i just found the answer.
"greeting(person: ("Jerry")'
this solves the code.
Meek D
3,457 PointsYou just need to call the function :
greeting( "Jerry")
om patel
Courses Plus Student 1,420 Pointsi didn't understand please if you can write the whole code and give me please
Meek D
3,457 PointsI don't really get what you are saying but listen you have a function which is called greeting and takes a string parameter and return a new concatenated sentence like hello jerry. The task is to called this function and passed a name into it .
greeting("Jerry")
Now "Jerry" is a string that is now passed into the greeting function and the function will return Hello Jerry