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 trialEthan Halfhide
Full Stack JavaScript Techdegree Student 3,886 PointsRandom Quote Generator problem
trouble with printQuote function, I completed everything but code still doesn't work
https://github.com/EthanHalf/RandomQuoteGenerator/blob/main/a_random_quote_generator-v1/js/script.js
2 Answers
Dane Parchment
Treehouse Moderator 11,077 PointsI haven't run the code, but just reading through it I think it's a syntax error. On line 58 in index.js
letQuoteObject = getRandomQuote();
should be
let QuoteObject = getRandomQuote();
if that change doesn't fix it let me know and I'll actually run the program, but basically you QuoteObject doesn't exist.
Ethan Halfhide
Full Stack JavaScript Techdegree Student 3,886 PointsYes such a rookie mistake on my end, thank you!
Dane Parchment
Treehouse Moderator 11,077 PointsAll good, everyone makes those mistakes.