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 trialGURUPRASAD NAGARAJAN
7,853 PointsI'm stuck at this, no matter what I do I get an error. (update:found a solve)
I tried variation of the following, not getting the right answer: let currencies = ["US":"Dollar","UK":"Pound","JP":"Yen"] currencies
currencies["UK"] = "ukCurrency"
let currencies "UK" = ukCurrency".
(BTW, this solev in the forum worked, thanks guys let ukCurrency = currencies["UK"]0
1 Answer
Jason Lysinger
8,106 PointsYeah, you need the variable to be first and the declaration to be after the "=". That is where you are getting the error.