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!

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 trial

JavaScript Object-Oriented JavaScript (2015) Practice Project User Interface Code

Max Pinomaa
Max Pinomaa
2,647 Points

Questions and choices do not appear

Hello, I can't get this project to work. I checked all the code many times but I can't find the error. Is there a typo in my code? Here's a snapshot of my code: https://w.trhou.se/we0f1qfd0g

1 Answer

Steven Parker
Steven Parker
225,770 Points

It looks like you have a few typos.

  • on line 19 of quiz.js you have this.question.length but you probably intended this.questions.length
  • on line 12 of quiz_ui.js there's a stray (extra) closing parenthesis right before ".test"
  • on line 43 of quiz_ui.js there's another stray closing parenthesis right after " of "
  • on line 44 of quiz_ui.js you seem to be missing a close brace ("}") for the displayProgress function
  • at the of quiz_ui.js there's no close brace (and semicolon) for the QuizUI object

Thanks for providing the workspace snapshot to facilitate analysis of the issue.