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 trialbusterlabs
9,276 PointsSwift - Parameters and Tuples
Challenge task 2 of 2
Call the greeting function and pass it the String "Jerry"
My code:
greeting ("Jerry")
Bummer!
2 Answers
Patrick Engelkes
9,293 PointsIn this exercise you had to set an external Parameter which looked sth like this:
func greeting(#person: String)
If you want to call this function now you have to set the person parameter first:
greeting(person: "Jerry")
This should do the trick :)
busterlabs
9,276 PointsTried this as well:
greeting = "Hello (Jerry)"
Result:
wift_lint.swift:11:21: error: use of unresolved identifier 'Jerry' greeting = "Hello (Jerry)" ^