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

There is a message that pops up indicating that "Task 1" is no longer passing. I'm not sure what that means.

I would like to make sure that this is the correct format. Is there a way to reset the whole thing and start over to it verifies that its done correctly.

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

</body>
</html>

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

That error generally means that the code you've just written has introduced a syntax error. Try returning to the first step of the challenge and start over. Or you can try and debug your current code, as it is causing the problem.

Dennis Le
Dennis Le
12,872 Points

There is a way to reset the code during the challenges. There should be a button that says "Reset Code" on the top right hand corner next to the "Check Work" Button.

task 1 is asking to put an open and closing script tags.

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

  <script></script>

</body>
</html>

task 2

<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>
<!--add alert('Warning!')-->
  <script>
     alert('Warning!')
  </script>

</body>
</html>

Hope that helps...