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 trialMichael Little
2,514 PointsWhy is my code not working??
I think I have everything put in correctly and have went over it multiple times. It is saying I haven't defined snack but it looks exactly like the videos, please help.
Michael Little
2,514 Pointsalso the <p>'s and ``` aren't in my code I just made a mistake formatting for the question.
2 Answers
Steven Parker
231,275 PointsThis line has a comparison operator (==) but I think you should have an assignment (=) there instead:
snack == chips.pop()
Michael Little
2,514 PointsThank you!!!
Steven Parker
231,275 PointsMichael Little — Glad to help. You can mark a question solved by choosing a "best answer".
Happy coding!
Michael Little
2,514 PointsMichael Little
2,514 Points