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 JavaScript Basics (Retired) Making Decisions with Conditional Statements The Conditional Challenge

Matthew Lehman
Matthew Lehman
5,282 Points

can someone please check my code. i copied it off dave M code and I still can seem to get it right. please help?

https://w.trhou.se/cue1y65i33

it says i have a syntax error missing a ) but i know i have it in there.

any help would be greatly appreciated

1 Answer

Hi Matthew Lehman , I think I found your syntax error, on the line of code where you print the result, you are missing a + after the correct variable. Should look like this:

document.write("You got " + correct + " out of 5 questions correct.");

Hope that works.

Matthew Lehman
Matthew Lehman
5,282 Points

Hi David

Thanks a lot, Google chrome javascipt console kept saying my error was a ) problem, so i couldn't figure out the problem.
I caught the area around the same time you caught it.

Thank you for being the extra set of eyes.