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) Types Numbers

Dustin Pratt
PLUS
Dustin Pratt
Courses Plus Student 215 Points

cant get past this one

let modernProgammingLanguage: String = "title"

var greeting = " (modernProgammingLanguage)"

println("A Dance with Dragons (modernProgammingLanguage)")

numbers.swift
let modernProgammingLanguage: String = "title"

var greeting = " \(modernProgammingLanguage)"

println("A Dance with Dragons \(modernProgammingLanguage)")
Martin Wildfeuer
Martin Wildfeuer
Courses Plus Student 11,071 Points

Create a constant named title and assign it a string: "A Dance with Dragons".

Next create a constant called price and assign it the value 9.99.

Finally, create a constant named yearPublished and assign it the value 2011.

Are these the tasks you are trying to complete?