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 trialAlfredo Galvez
6,145 PointsI type the right command with the right syntax, yet I get that when I check my work, it tells me I haven't
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript Basics</title>
</head>
<body>
<h1>Wellcome to my website!</h1>
<script src="app.js"></script>
</body>
</html>
alert("Warning! This message is going to be distroyed in");
alert("3...");
alert("2...");
alert("1...");
document.querySelector("h1").textContent = "Boom!";
//console.log("The message was distroyed!");
console.log("Begin program");
alert("I am programming!");
1 Answer
Jason Larson
8,359 PointsIt's not checking your file successfully because the alert it's looking for is at the bottom of your file and you have all those other alerts at the beginning, so it's probably finding the first alert and checking the text for "I am Programming!" but it's not in the first alert. Either delete the other alerts or move the "I am Programming!" alert to the top of the file, and it should pass the check.