Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

alex santorineos
4,345 PointsI have no idea what to do
I have no idea how to solve this. I have tried everything, please help!!!
The instructions are : We need to add the first chocolate to our box. Create a stored property named caramelDelight. To this dictionary add a key named flavor that stores a value named caramel to the caramelDelight dictionary to initialize it.
struct ChocolateBox {
var caramelDelight: String?
let caramelDelight = ["flavor": "caramel"]
}
1 Answer

Chris Shaw
26,662 PointsHi Alex,
You're almost there, instead of declaring a rouge constant that tries overrides the already declared property caramelDelight
you simply need to assign the dictionary to the variable caramelDelight
.
struct ChocolateBox {
var caramelDelight = ["flavor": "caramel"]
}
Happy coding!