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 trialHenry Gines
1,365 PointsHow to set the favoriteColor variable to your favorite color? You might need to move some things around and add or chang
Adroid Development
2 Answers
David Hope
19,876 PointsCould you please clarify the problem you are having with this, Beau.
Daniel Hartin
18,106 PointsAt the end of each section treehouse uses a series of quizzes and code challenges to help you make sure you have picked up everything in the previous lesson.
The code challenges have a similar function to a basic text editor you should simply click on the line and start typing then click on the green button at the top when you wish to submit your code.
In this code challenge you should type/change the code to be correct based on the knowledge you should have gained in the previous lesson. Your code should look like below:
String favouriteColor = "Purple";
Hope this helps Daniel