JavaScript JavaScript Basics Introducing JavaScript Write Another Program

Pedro Antonio Vidal da Costa
Pedro Antonio Vidal da Costa
3,105 Points

I just did,just like in the video and is not working,what i did wrong?

I dont need to give details

index.html
<!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

Patrik Horváth
Patrik Horváth
11,051 Points

your problem is you gived 2 script tags with 1st is no needed

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