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

John Moron
John Moron
1,658 Points

How do I create a constant named language and assign it a string "Swift"

Am I doing this right?

constants.swift
let language = "swift"

2 Answers

Yes. Spot on.

If you're inside a code challenge, capitalise the 's' else I'll pick up on that.

let language = "Swift"

Hope that helps.

John Moron
John Moron
1,658 Points

Oh That's why!! Thanks man you really helped...!!

No problem! ;-)