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

How am I supposed to write the coding inside the script area? It keeps telling me to add document.write.

I need help getting out of this state of confusion.

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>

1 Answer

Brendan Whiting
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Brendan Whiting
Front End Web Development Techdegree Graduate 84,667 Points

It needs to be inside the <script> tags, but below the line that is the comment starting with //:

<script>
// Write your code here. <-- this part is a comment and will not get run
This is where code goes that you want to run. 
</script>