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 trialUmar Magid
181 PointsHelp
I just don't get it please give me awnser and explain
3 Answers
Meek D
3,457 PointsBasically they are asking to create constant variable and assigned them a value. Remember that use that key word "let " for constant variable
let title : String = "A Dance with Dragons"
hope that helps
Damon Golding
2,426 PointsHi there,
For this challenge you need to create 3 constants (in all) and assign a value them.
For the first task it asks you to create a constant named title
and give it a String
value of "A Dance with Dragons"
. To create a constant we use keyword let
.
So what this task is asking you to do is create a constant (let
) and name it title
then give it a value of "A Dance with Dragons
.
I hope that helps somewhat. You can use this formula on the other two tasks in this challenge.
Umar Magid
181 PointsThanks man but what are the other 2 task ? Many thanks
Damon Golding
2,426 PointsThe other two task use the same formula so:
create a constant (let
), give it a name then assign it a value - I believe the other two task as you to assign Doubles
instead of Strings
Umar Magid
181 PointsThanks alot!
Umar Magid
181 PointsUmar Magid
181 PointsThanks man
Meek D
3,457 PointsMeek D
3,457 Pointsglad I help you man