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 trialAlexandru Ungureanu
1,571 PointsWhat i do wrong here?
I was finished my first task and he tell me "Wel done" and after i finished my second task exactly like in course video he tell me "it's look like task 1 is not longer pass"
<!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("Warning!");
</script>
</body>
</html>
1 Answer
Charlie Harcourt
8,046 PointsIt's because you have two opening and two closing script tags. Since you're not working with a file called 'scripts.js' there is no need for it to be there. You can simply remove the first set of script tags.
<script src="scripts.js"></script> \Try removing these script tags and its contents
<script> alert("Warning!"); </script>
:)
Alexandru Ungureanu
1,571 PointsAlexandru Ungureanu
1,571 PointsThank you, Charlie!
I realize that after i posted the problem here.