JavaScript JavaScript Basics Introducing JavaScript Your First JavaScript Program

Lauren Allred
Lauren Allred
169 Points

trying to figure out what this first challenge wants me to do

not sure what is needed for the challenge

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>
// function document.write ("<h1> Welcome to my site </h1>");
  alert (" Welcome to my site,");

</script>

</html>

1 Answer

Matthew Long
Matthew Long
19,552 Points

It's wanting you to use the write() method on the document:

document.write("Welcome to my site");