JavaScript JavaScript Basics (Retired) Introducing JavaScript Using the Console

Nathan Kim
Nathan Kim
3,837 Points

Hi, I can not get past this challenge. Is there any way you can tell me what I am doing wrong?

I am really struggling with this challenge.

index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>
<script>
  <script>console.log("Begin program");</script>
document.write("Welcome to JavaScript Basics");

</script>
</body>
</html>

3 Answers

<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>
<script>
console.log('Begin program' );
document.write("Welcome to JavaScript Basics");

</script>
</body>
</html>
Steven Parker
Steven Parker
207,972 Points

Don't add additional script tags.

Just use the ones already there and put your additional JavaScript code on the blank lines provided.

Nathan Kim
Nathan Kim
3,837 Points

Thanks, that fixed my problem. Why doesn't console.log get a script tag?

Steven Parker
Steven Parker
207,972 Points

It's already inside a script section. You can have any number of JavaScript lines in one script section.