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 Hello, JavaScript! JavaScript Challenge Solution

KJ Lee
KJ Lee
1,059 Points

When I press preview, it is not running my code. How can I fix this?

I have checked the code yet it isn't working. Also, when I try to access the console using the command + shift shortcut, it doesn't work. Any advice?

4 Answers

Noelle Szombathy
Noelle Szombathy
10,043 Points

It may be helpful to see a screenshot of your workspace to get an idea of why your code isn't working. To see the console, you should be able to right click in the browser window and select "inspect" which will then allow you to navigate to the Console tab. The shortcut on mac is command + opt + i

To access the console right click the press inspect

Richard Davis
Richard Davis
1,225 Points

I had a similar issue, not with the console but with it not running my code. I solved this by saving the file before clicking preview.

Luiz Peres
Luiz Peres
1,507 Points

Hi my issue is that the system it's only displaying the Warning message and going straight to the Boom, without counting down. also not showing the text "Message destroyed. I have checked the codes and all looks good.... Can you help?