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 Write Another Program

Javier Lopez
Javier Lopez
390 Points

So i pass task one and when i go to task 2 and press check work the program tells me that task one is wrong now.

What should i do?

index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>
  <script src="scripts.js"></script>
  </script>

</body>
</html>
angelod
angelod
6,694 Points

You've two </script> tags try removing the bottom one

1 Answer

Steven Parker
Steven Parker
231,275 Points

Any syntax error will invalidate the entire script and cause the re-validations to fail.

In this case, the error is from having one opening script tag, but two closing tags.

But another issue is that the instructions did not ask for the script tag to have a "src" attribute.

And if you're working on task 2, you still need to write the code that goes between the script tags.

Javier Lopez
Javier Lopez
390 Points

Thank you! figured it out.