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 trialMatthias Jensen
193 PointsIt looks like Task 1 is no longer passing.
This weird message keep coming. Please help me?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript Basics</title>
</head>
<body>
<script src= alert"shout.js"></script>
</body>
</html>
Matthias Jensen
193 Pointsi don't know*
Matthias Jensen
193 Pointsit says it has to be in the shout.js file
2 Answers
James Matthews
21,610 PointsHI Matthias
I think you need to write your script in the JavaScript file (the second tab in the challenge) to pass the second part of the challenge. You correctly linked to the shout.js file in task 1, and you simply need to add the alert statement within the JavaScript file itself.
However, it would actually be valid to write JavaScript inside <script> tags in the html markup:
<body>
<script>
alert("I DID IT");
</script>
</body>
rhysdamagnez
14,394 PointsHi Matthias,
You completed task 1 correctly by adding
<script src="shout.js"></script>
inside of the body tags on index.html
To complete task 2 you were asked to add an alert that said "I DID IT!" to the shout.js file. All you need to do is click on the "shout.js" tab and add the alert.
Let me know if you need help writing the alert.
Matthias Jensen
193 PointsMatthias Jensen
193 Pointsi don't where to write "alert(I DID IT);