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

<script> Hello, I am in JavaScrip hell.

It's shallow though because it's like my first challenge! I don't know if I missed something in the video but I have no idea how to combine the use of the script tags and the document.write command. can you please help me understand the logic and what the heck to do?

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>
docment.write("<h1>Welcome to my site<h1>");
</script>

</html>

1 Answer

Hey there,

You've done it correctly - just need to check the spelling on 'document'. I added the 'u' and it worked just fine!