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 trialalex angeles
664 PointsHow do you set the favorite color variable?
Does the lower case "c" matter?
favoriteColor String equals "";
String favoritecolor="black";
1 Answer
aakarshrestha
6,509 PointsHi,
If you define your object as "favoritecolor" then you should still be ok. Understand that "favoritecolor" is not the same as "favoriteColor". String favoritecolor = "yellow" is different than String favoriteColor = "orange".
Happy coding!
Julian Fields
8,983 PointsJulian Fields
8,983 PointsHi alex, the lowercase c does matter, try using favoriteColor.