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 Link to an External Script

Ferry Helmich
Ferry Helmich
2,719 Points

I keep getting "Oops! It looks like Task X is no longer passing." errors

I keep getting errors like "Oops! It looks like Task 1 is no longer passing." although the code from task 1 is still there. If I go back to task 1 and just press "check work" it passes without any modifications. If I continue I get the error again. This means I can't continue the course :(

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="shout.js"></script>
</body>
</html>
shout.js
document.alert("I DID IT");
Ferry Helmich
Ferry Helmich
2,719 Points

BTW: I'm running the latest Chrome on a mac (OSX 10.9)

2 Answers

Christopher De Lette
PLUS
Christopher De Lette
Courses Plus Student 7,139 Points

Hi Ferry Helmich ,

The challenges are very specific in nature and if not done this way the program/application/task will not pass the correct values, causing you to have to return to the previous task in the challenge. In your case, the second question asks for an alert popup with the phrase 'I DID IT' and has to be written EXACTLY like the question asks for it to be. In this case you have double quotes around the string instead of single quotes. Very picky :)

Take care and Happy Coding!

Ferry Helmich
Ferry Helmich
2,719 Points

Hi Christopher,

Thanks for your answer. I just figured out by googling the error that sometimes the error references to the wrong task and that most of the time it is relevant to the current task. In this case I had to change "document.alert" to "window.alert". I'm off to the next task fortunately :)