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

None of the code that I write is displaying when I press the preview button.

I keep on writing code, but when I click on the eye, nothing appears for the preview.

It might help if you include the lesson you are on and maybe what the code is you are trying to use. Sometimes I need to save an extra time and refresh the window in the browser to make it work. Otherwise, it may be some form of syntax error that is not allowing any of the code to show up. Even a missing semi colon or comma might cause a big chain reaction.

2 Answers

Make sure you have included the script file in the index.html file with the script tags.

Sorry for the late response. This problem only occurs when I am working on my old Windows 7 machine. On my Macbook, everything seems to work fine. If I have any more problems, I will ask! Thank you for the quick responses!