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 trial

iOS Swift Basics An Introduction to Swift Programming Working With Constants

Kevin Perez
seal-mask
.a{fill-rule:evenodd;}techdegree
Kevin Perez
iOS Development with Swift Techdegree Student 1,030 Points

I made a constant called favoritedessert and named it flan like this: let favoritedessert= "flan". How is this wrong?

I keep getting the bummer area when I am asked to make a constant named favoritedessert and assign it a string of my favorite dessert. I code the following.

let favoritedessert= "flan"

constants.swift

1 Answer

Steven Parker
Steven Parker
231,269 Points

The variable name here is "favoritedessert" but the instructions ask for "favoriteDessert" (with capital "D").

Kevin Perez
seal-mask
.a{fill-rule:evenodd;}techdegree
Kevin Perez
iOS Development with Swift Techdegree Student 1,030 Points

I tried that and it would not work, but I think it was a refresh page problem. I exited and came back and it worked. Thank you anyways!