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 Ede
11,575 PointsCannot read property 'text' of undefined, referring getCurrentQuestion() method. I have pored over this code, help?
Here's a snapshot of my workspace: https://w.trhou.se/oaxbk9qwcv
Thanks in advance for any help.
2 Answers
Tijo Thomas
9,737 PointsLine 15 of your quiz.js file is:
return this.questions[this.CurrentQuestionIndex];
Line 4 of your quiz.js file is:
this.currentQuestionIndex = 0;
You need to change the "C" in line 15 to lowercase to match line 4.
Ethan Ede
11,575 PointsWow, Tijo. You have excellent eyes. Thank you!