+ 1
JavaScript
What are External Files
3 Answers
+ 2
External JavaScript files are files that you'd reference from an HTML file or a web page.
You can put JavaScript in the HTML of a page using a script element or you can set the script element's src attribute to specify a URL for the JavaScript. In other words, you can use internal or external JavaScript.
This offers more detail: https://www.w3schools.com/tags/att_script_src.asp
+ 2
https://www.guru99.com/all-about-internal-external-javascript.html
https://www.quackit.com/javascript/tutorial/external_javascript_file.cfm
https://www.javatpoint.com/external-javascript-file
0
Inline js
You put js things as attribute in html elements
Ex- onclick="myFunction()"
Internal js
You you use script tag in html page
Ex- <script>
//Js code
</script>
External js
When you link a js file to html file
Ex- you have js file as myscript.js with js code for html element in index.html
And you link it in html
<script src="myscript.js" ></Script>