driffrence linking script in html and js file code example
Example: linking a script .js
<script type="text/javascript" src="path-to-javascript-file.js"></script>
<script type="text/javascript" src="path-to-javascript-file.js"></script>