Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Swift Basics (retired) Types Numbers

Ian Callahan
PLUS
Ian Callahan
Courses Plus Student 228 Points

I don't understand

why is the carrot under the "T" and how would I resolve this issue?

numbers.swift
let title; "A Dance with Dragons"

2 Answers

Nejc Vukovic
seal-mask
.a{fill-rule:evenodd;}techdegree
Nejc Vukovic
Full Stack JavaScript Techdegree Student 36,386 Points

HI.

You typed a " ; " in your constant declaration.

Be careful here ->

let title : String = "A Dance with Dragons"

This is the right answer. To clarify: "let" keyword tells the system that you are declaring a constant (constant cannot be changed when they are initialized with a value), then ": String " tells the system that the constant will be of type String, and finally =" A Dance with Dragons" sets the constant with this string value.

Hope this clears some things.

Regards,

N.V.

Ian Callahan
PLUS
Ian Callahan
Courses Plus Student 228 Points

Oh yes thank you!! I ended up re watching the lecture and caught it myself. Thanks for the help

Nejc Vukovic
seal-mask
.a{fill-rule:evenodd;}techdegree
Nejc Vukovic
Full Stack JavaScript Techdegree Student 36,386 Points

Welcome. And don't worry you'll get more and more questions as you progress, but the solution is easy: either the Documentation or Treehouse forum, you'll get your answer.

Enjoy your Sunday.