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 trialJames Chi
941 PointsI'm VERY confused with this task
I think i might be doing it wrong but ....
name = "Auggie"
name = "favorite-food"
puts name
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHey James,
I think you may have misread the 2nd task. You have the first task correct in that you created a variable called name
with a value of "Auggie"
The second part of the challenge wants you to create another variable called favorite_food
and put your favorite food in as the value. For example favorite_food = "Strawberry Pie"
And, the challenge did not ask for a puts
statement, so I'm not sure why you added that, but it needs to be deleted for the task to pass.
Hope that helps.
Luis Diaz
5,617 PointsLuis Diaz
5,617 PointsIt's asking you to create another variable for your favorite food. Why did you assign "favorite-food" to name?
favorite_food = "type your favorite food here"