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 trialJames LeRoy
1,088 PointsCannot Assign the value for key "UK" to a constant named ukCurrency.
As the title says, I am having trouble assigning the value "UK" to a constant named "ukCurrency". Here are the lines of code I have tried:
currencies["UK"] = "ukCurrency"
and
currencies.removeValueForKey("UK": "ukCurrency)
Thanks in advance!
let currencies = ["US": "Dollar", "UK": "Pound", "JP": "Yen"]
currencies["UK"] = "ukCurrency"
3 Answers
Logan R
22,989 PointsI would check out William Lee 's answer for a good explanation here:
James LeRoy
1,088 PointsThanks man! I actually just figured it out from a similar post about five minutes ago. I think I understand it now.
QA;TL?
Logan R
22,989 PointsNot sure what QA;TL means, lol.
James LeRoy
1,088 PointsQA;TL stands for "Question Answered, Thread Locked"
It's used a lot on other forums so I assumed y'all would know about it.
Logan R
22,989 PointsAh okay. (I'm not very hip lol)