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 trialJavier Lopez
390 PointsSo i pass task one and when i go to task 2 and press check work the program tells me that task one is wrong now.
What should i do?
<!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>
</body>
</html>
1 Answer
Steven Parker
231,269 PointsAny syntax error will invalidate the entire script and cause the re-validations to fail.
In this case, the error is from having one opening script
tag, but two closing tags.
But another issue is that the instructions did not ask for the script tag to have a "src" attribute.
And if you're working on task 2, you still need to write the code that goes between the script tags.
Javier Lopez
390 PointsThank you! figured it out.
angelod
6,694 Pointsangelod
6,694 PointsYou've two </script> tags try removing the bottom one