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 trial

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

console states that quiz.hasEnded is not a function

I followed along with the lesson but the console keeps sending back an error that quiz.hasEnded is not a function

https://w.trhou.se/c3c92eh5sh

Moderator edit: Changed Workspace URL in Body to Snapshot so others can view

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

Hi Shannon,

I'm afraid I won't have time to have a look tonight, I suggest you repost this question to the Community with the Snapshot link. This will put it on the first page, and usually at this time of day, there are many students that should be able to help.
Normally I wouldn't say to repost, but this may be a good exception and helpful in getting your problem solved. :)

3 Answers

Andreas Nyström
Andreas Nyström
8,887 Points

Hi. We can't get into your workspace using your link.

You need to press the button on the upper right corner which says "Snapshot Workspace" for us to be able to see your code. Or post your codesnippets in here directly.

Do I copy the new link with #fork? I'm not sure how to share my workspace.

Andreas Nyström
Andreas Nyström
8,887 Points

Hi again. In your Workspace there is a button on the top right that looks like a camera. In there you can press take snapshot and send us the link here. For more info check out this tutorial: https://teamtreehouse.com/library/previews-and-snapshots

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Without seeing the code, this would just be a guess, but quiz.hasEnded is not syntactically correct for a function... are you maybe missing the the parenthesis needed for a function call?
If that isn't the problem, then a snapshot will be need for us to help you debug.

:) :dizzy:

https://w.trhou.se/c3c92eh5sh

Console Log Uncaught TypeError: quiz.hasEnded is not a function at Object.displayNext (quiz_ui.js:3) at app.js:12