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 trialmohamed fekry
Courses Plus Student 1,590 PointsChange the value in the flavor variable to cookie dough. Preview the code and make sure the message appears.
Change the value in the flavor variable to cookie dough. Preview the code and make sure the message appears.
i dont know how to pass it
1 Answer
Alexandra Silcox
24,486 PointsThe point of this section is to make the conditional statement true so that "Randy's favorite flavor is cookie dough, also!" will display. In order to do this, it's asking you to simply swap out the initial value you gave the flavor variable to "cookie dough" instead of the first flavor you gave it. Once that is done, it's asking you to preview it just to make sure the conditional statement is working and is true.
$flavor = "the flavor your gave it"; // swap this out for cookie dough