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 trial

JavaScript JavaScript Basics (Retired) Introducing JavaScript Write Another Program

Why is this not working? I believe I'm doing it correctly, but I am new at this where am i going wrong?

I followed the steps from the video as a reference when I attempted to enter script codes I did the first part correct and it allowed me to continue, after I added the warning to the script it tells me that the first one is no longer correct. but it does give me my pop up window saying warning

index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
  <script src="scripts.js"></script>;
   <script>
  alert ("Warning!") ;
</script>
  </body>
</html>

2 Answers

Sandro Hallado
Sandro Hallado
4,231 Points

You don't need the script src tag so just have the script tag for alert