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

What is the answer? Why doesn't Treehouse help the student out and show the answer? They will always be stuck.

Add what details? I need help with this!!!!!

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 <h1>"Welcome to my site"</h1>;

</script>

</html>

7 Answers

compare what you have typed with what is shown at the 2:29 mark in the video preceding this challenge.

Still didn't work! I copied the format just like the video.

make your call to document.write like in the video and it will pass. i just did it.

Thanks for your help! I really appreciate it.

I finally figured it out: document.write("<h1>Welcome to my site</h1>"). I had to put the quotation marks outside the h1 tags. I need a javascript syntax cheatsheet.

Remember, whenever you use a method, you usually want to add (), then put your information in between. Try looking at your document.write method.

Thank you.

I was asking myself this same question too. After using Treehouse for awhile now I realized it is a great learning opportunity. They don't give you the answer so you have to learn how to use the resources available to you to find the answer. In a real world scenario, all you have is the resources you understand how to use to solve your problem.

Yes, I realize the intent on not giving the answer; however when a student is simply "CLUELESS", what is their recourse for moving forward? Some students like myself have a very bad retention span and rely on better hints that will prompt them to the right answer.