JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

How do you link to an external script?

How do you link to an external script because i can't make it?

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>


1 Answer

Cooper Runstein
Cooper Runstein
11,780 Points

You need to include a script tag in your html:

<script src="PATH_TO_FILE"></script>

If you need help figuring out that relative path to your file, comment so.