iOS Swift Basics An Introduction to Swift Programming Working With Constants

Kevin Perez
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
203,261 Points

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

Kevin Perez
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!