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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Conner Williams](https://secure.gravatar.com/avatar/23842ea260aa27c307e775ff4366e17e?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Conner Williams
Courses Plus Student 3,305 Pointswhy is the preview function in the workspace not functioning properly?
after writing the first three lines of code as instructed and hitting the preview button, my browser just displays a web page with one white rectangular box and no text. No alerts were presented either.
3 Answers
![Andreas Nyström](https://uploads.teamtreehouse.com/production/profile-photos/9387982/micro_profile.jpg)
Andreas Nyström
8,887 PointsHi.
Did you write it correct? Please do copy your code for us to see in future questions here. Makes it alot easier. The other thing could be that you forgot to save the file before previewing it.
Hope this helps, if not. - Ask again! :)
![Jamie Burgess](https://uploads.teamtreehouse.com/production/profile-photos/9428512/micro_me.jpg)
Jamie Burgess
3,973 PointsMy page looked the same as Conner's after writing the first three lines (just a white rectangle at the top). Then I realized I forgot to put quotation marks in the first line. I should have written:
alert("Hello from Treehouse");
I had written:
alert(Hello from Treehouse);
Once I added the quotation marks, then the other lines of code worked and my page looked the same as the video.
I hope this helps.
![Gigi Montgomery](https://secure.gravatar.com/avatar/779fe66d5faf303ad5df62194971afc9?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Gigi Montgomery
4,706 PointsHi, this is super late, but I just started this course and was having the same problem and found I was missing a quote, despite looking over it again and again.
alert("Hello from treehouse"); document.write("<h1>Welcome to JavasScript Basics </h1>"); alert("<h1>Thanks for visiting.</h1>");
Hope this helps.