JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

michael bowen
michael bowen
258 Points

There are two files: a web page, index.html, and a JavaScript file, shout.js. To run any programming in the shout.js fil

There are two files: a web page, index.html, and a JavaScript file, shout.js. To run any programming in the shout.js file, you first need to load it into the index.html file. Add the required HTML to load the external JavaScript file into the web page. Make sure to add your code inside the <body> of the page.

2 Answers

Adam Beer
Adam Beer
11,257 Points

In the HTML file, inside the <body> tags you can add the right path to your shout.js file. Reminder: put the right path inside the <script> tags with src="" attribute. I hope this help and you can solve the second task! Happy coding!

Kim Dallas
Kim Dallas
11,461 Points

thanks adam. what's src mean