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 trialDevin Tripp
3,826 PointsDictionary's
I know there is nothing wrong with my code. Probably something wrong with the website code here, but can someone tell me what the issue is if it is me which I'm almost 100 percent sure its not me.
// Enter your code below
var iceCream = ["CC": "Chocolaate Chip", "AP": "Apple Pie","PB": "Peanut Butter"]
2 Answers
David Lin
35,864 PointsSimple typo: Chocolate is spelled incorrectly in your dictionary:
var iceCream = ["CC": "Chocolate Chip", "AP": "Apple Pie","PB": "Peanut Butter"]
Devin Tripp
3,826 PointsI Realized that I thought the syntax had to be exact not the spelling of one word. Sorry I'll be more careful next time. It was also giving me a compile error when I tried to specify the type: var iceCream: [String: String]. thats how I wrote it.