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 trialMohamed Dine
1,249 PointsLooks like you have too many `<script>` tags. You only need one.
I added the script src into the html code and when i executed it, it told me I have too many <Script> tags. I also tried to use less script tags but it would give me an Syntax Error. I followed the correct way to link an html to a Js code, but for some reason it wont execute.
<!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>
alert("hello");
</script>
</body>
</html>
alert("hello");
1 Answer
Steven Parker
231,275 PointsYour first set of tags (the ones on a single line) load in the shout.js file. That's all you need for this challenge. The second set enclose some JavaScript code that you don't need because it's the same thing that's in the file that gets loaded.