JavaScript JavaScript Basics (Retired) Introducing JavaScript Your First JavaScript Program

You didn't call document.write function

I did infact call the document.write function. Maybe something is wrong with your checker?

<!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"); // Write your code here.

</script>

</html>

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>
// Write your code here.

</script>

</html>

1 Answer

Clayton Perszyk
MOD
Clayton Perszyk
Treehouse Moderator 46,805 Points

Strange, I copied and pasted your code and it worked fine.