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 trialMartin Franzner
3,300 Pointsshouldn't call println directly?
why is happening this to me?
func greeting() {
let greet = "Hello"
println(greet)
}
greeting()
6 Answers
Steve Hunter
57,712 PointsIt is looking for the simplest solution:
func greeting(){
println("Hello")
}
That will get you through the challenge.
Steve.
Martin Franzner
3,300 PointsThanks for the help Steve, but sorry, the error keeps it same. I don't have idea where is the mistake...
Steve Hunter
57,712 PointsWeird! Can you paste your code again, or screenshot it?
Martin Franzner
3,300 Pointsfunc greeting(){
println("Hello")
}
greeting()
Steve Hunter
57,712 PointsRight - Task 1 requires just:
func greeting(){
println("Hello")
}
Submit that the first task ... then add the next line for Task 2.
Martin Franzner
3,300 PointsYeah, now worked, really thank you Steve!!
Steve Hunter
57,712 PointsNo problem!
:-)
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsYou then call it with
greeting()
as you have correctly done.
Steve.