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 trial

iOS Swift Basics (retired) Variables and Constants Variables

Jamal Aoun
PLUS
Jamal Aoun
Courses Plus Student 115 Points

Please help me i just cannot seem to get my head around this task.

Im a absolute beginner. If someone can please help me out with this task, would be really appreciated.

ie. the correct code, so i can figure out where I'm going wrong.

Thanks

string_assignment.swift
var greeting = "hello"

1 Answer

Hi Jamal

Your code is correct but the challenge is looking for "Hello" not "hello" (It's just one of those Treehouse code things). So your code should end up looking like this:

var greeting = "Hello"

Hope this helps!

Jamal Aoun
Jamal Aoun
Courses Plus Student 115 Points

Thank you so much Lachlan.

Ive literally been pulling my hair out. I will keep this in mind for future use on Treehouse.