Welcome to the Treehouse Community
Looking to learn something new?
Is something wrong with my syntax?
The objective is to assign a constant 'ukCurrency' value of key 'UK'.
I am doing the following this way: let ukCurrency = ["UK"]
Upon checking this, it is saying that "you code cannot be compiled. Please see the Preview for compile errors" but when I'm clicking Preview, it;s not showing me any error there.
What is the problem then?
You need to reference the dictionary:
let ukCurrency = currencies["UK"]
Hope that helps!