External JS

Let's add an external JavaScript file to our page!
We're now completing our work in Submlime and the console.

The script tag you will need to add to this page:

    <script src="js/007-external-js.js"></script>
            
  1. Open the js/007-external-js.js file in Sublime Text and review the JavaScript file you will be adding.
  2. Open the 007-external-js.html file in Sublime Text. Add the script above to our external file right before the closing body tag.
    • Hint: Look for the comment "ADD EXTERNAL JS HERE"
  3. Save the 007-external-js.html file and refresh this page in your browser.
  4. In the console, you should see 007-external-js.js loaded.