javascript execute external script code example
Example 1: linking a script .js
<script type="text/javascript" src="path-to-javascript-file.js"></script>
Example 2: calling javascript file in html
<script type="text/javascript" src="yourfile.js"></script>