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 trialAlexander Stack
2,087 Pointsrandom quote generator working but something is coming undefined
I got my random quote generator working but there is something coming up as undefined. heres the link to it on my github https://github.com/alexstack012/TTH-Project-1-Quote-gen
1 Answer
Steven Parker
231,141 PointsOn line 137 of script.js, the code displays "currentQuote.category". But none of the quotes contain a "category" attribute, so it always displays "undefined".
Alexander Stack
2,087 PointsAlexander Stack
2,087 PointsYou are my favorite person of the day! at one time i labeled "tags" as category and when i switched that i forgot to change that. thank you again.