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 Introducing JavaScript Finishing the Game Control the Flow with Conditional Statements

Brandon Nault
Brandon Nault
102 Points

I typed in everything as the video said and all I see is a black screen.

I typed in exactly what the video said, and all I see is a black a screen.

Andrew Hickman
seal-mask
.a{fill-rule:evenodd;}techdegree
Andrew Hickman
Full Stack JavaScript Techdegree Student 10,013 Points

Hey Brandon! It would be really helpful if you could provide your code so someone can help you identify the problem. Are you using Workspaces or your own text editor?

Steven Parker
Steven Parker
231,236 Points

To facilitate a complete analysis, make a snapshot of your workspace and post the link to it here.

I'd suggest sticking with the workspaces to make it easy to get help until you're good at tracking down issues on your own.

Cameron Prouse
Cameron Prouse
2,120 Points

I'm having the same issue. :/ It comes up even when I get fresh workspace and ask to just preview.

Here's a snapshot. https://w.trhou.se/drvy6xrq5c

Steven Parker
Steven Parker
231,236 Points

Cameron, while you may have the same symptoms, your cause could be very different from the other student so you should always start a fresh question of your own and post your snapshot link there.

4 Answers

Dale Jones
Dale Jones
9,025 Points

Hi Brandon,

Without a snapshot we can't see what the issue could be. If you add one I'm sure many of us will be able to help you!

Hi Cameron,

I'm not sure if you'll see this but your error was on line 68, 70 and 72. You tried to add to the var current score but this does not exist, if you change current score to currentScore and add the missing } to line 72 it should work.

Henrique Pereira
Henrique Pereira
401 Points

The same thing happened to me. It so happens that when I went back to my code, I noticed I had forgotten to close parenthesis in one of my if statements.

Jared Pooley
Jared Pooley
3,320 Points

With mine, I had an extra 'if' declaration that wasn't meant to be there I removed it and it worked, just check that there's nothing in your code You've written that might cause the javascript to not load, such as extra punctuation e.t.c.

Senith Malavige
Senith Malavige
463 Points

i had the same issue before but I figured that '==='should not give a space with key and end if must be separated as 'end if' that worked for me