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 trialErik Spitzform
Courses Plus Student 208 PointsInside the shout.js file
Parse error
<!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>
<script>
alert("I DID IT!");
</script>
3 Answers
matth89
17,826 PointsHi, Erik.
Once you've linked your js file, and you are inside the file, you no longer need to use the <script> tags. Enter the alert without the script tags, and you are good to go.
Erik Spitzform
Courses Plus Student 208 PointsAh I see, cheers mate! Still very green to JS
matth89
17,826 PointsHey, no worries. I'm new to JS myself. Started about a month ago. It can be daunting at first, but it all starts to come together pretty quickly. Good luck!
Erik Spitzform
Courses Plus Student 208 PointsThat sounds encouraging then. Today is my first day and Treehouse makes it pretty easy to learn. Do you also know html and css? I am learning js for a new job and I'm TOTALLY new to programming. Exciting challenge though.
matth89
17,826 PointsThat's awesome. Welcome to treehouse. I'm new to programming, as well. This is my third month on here. My only previous coding experience was one month on codeacademy. I did start with html and css. I've completed most of the css related courses in my track, so I'm focusing on JS on here, while doing personal css practice projects on the side. You'll like it here, the courses make it easy to learn, and the forum is a great resource. Wish I had signed up a long time ago