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 trialMichael Zaro
13,196 PointsIs it just me or is the phrasing of this task odd? I'm sure the task is simple, but I don't get what I'm supposed to do
Does anyone else feel the same?
struct ChocolateBox{
var caramelDelight =
let flavor [
"flavor" : "caramel"
]
}
1 Answer
Michael Zaro
13,196 Pointsstruct ChocolateBox{
var caramelDelight = [ "flavor" : "caramel"]
}
Michael Zaro
13,196 PointsMichael Zaro
13,196 PointsI figured it out, but I still think the phrasing is a bit odd.
Here is my solution.
struct ChocolateBox{
var caramelDelight = [ "flavor" : "caramel"]
}