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 trialShannon Kempf
18,819 Pointsconsole 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
Moderator edit: Changed Workspace URL in Body to Snapshot so others can view
3 Answers
Andreas Nyström
8,887 PointsHi. 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.
Shannon Kempf
18,819 PointsDo I copy the new link with #fork? I'm not sure how to share my workspace.
Andreas Nyström
8,887 PointsHi 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
Treehouse Moderator 145,860 PointsWithout 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.
:)
Shannon Kempf
18,819 PointsConsole Log Uncaught TypeError: quiz.hasEnded is not a function at Object.displayNext (quiz_ui.js:3) at app.js:12
Jason Anders
Treehouse Moderator 145,860 PointsJason Anders
Treehouse Moderator 145,860 PointsHi 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. :)