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 Constants

i don't understand the question

What am i doing wrong

constants.swift
var str : string ="hello,world"
str ="language"
let str ="swift"

HI Allen Abraham !
Welcome to TeamTreeHouse!

Can you please post the question ?

-Aurelian

Stone Preston
Stone Preston
42,016 Points

Aurelian Spodarec the challenge is linked on the right side of this page under "Related Content"

Umm, ii didn't had it when i was at my college. Either its the browser or something.

2 Answers

Stone Preston
Stone Preston
42,016 Points

task 1 states: Create a constant named language and assign it a string "Swift"

creating a constant looks like this:

let constantName = value

the task asks for the constant to be named language and have a value of "Swift" so all you need to write is:

let language = "Swift"

Thank you i was forgetting to capitalize the S of swift