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) Introducing JavaScript Your First JavaScript Program

How do you do it

How do you call a document.write question???

index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>

<body>
</body>

<script>
//document.write("Welcome to my site");

</script>

</html>

2 Answers

Everything seems fine other than the fact that you commented out your code. Remove the "//" and it'll work

yay! thanks

I'm glad it worked! Click best answer to close the question.

Michael Hulet
Michael Hulet
47,912 Points

I took care of it this time, but Barry's right. In the future, when you have a question answered satisfactorily, it'd be great if you could hit the "Best Answer" button on it. That way, it'll float to the top so people who have your same problem in the future can see that it worked for you, and the question on the forum will be marked as solved. Happy coding!

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

To be clear, while assigning a "best answer" is highly encouraged, from a support perspective it will never truly become "closed". In customer support there is the idea of an "open ticket", "closed ticket", and "solved ticket". A "closed" ticket is no longer accepting any new input and a solution has been in place for a given length of time. This question will always be open for new input from others :sparkles:

Sorry for not being clear. What I meant to say was that if the questioner found a solution that worked for them, it may be worthwhile to click best answer to indicate to other people that the problem has already been resolved. If the questioner doesn't do so, others may think that he still hasn't found a solution.