importar js en html
<script type="text/javascript" src="yourfile.js"></script>
SteDeus
<script type="text/javascript" src="yourfile.js"></script>
<script type="text/javascript" src="/path/to/script.js"></script>
<script src="index.js"></script>
<script type="text/javascript"
src="file.js">
</script>
<script type="text/javascript" src="path-to-javascript-file.js"></script>
// This is an awesome answer!
// This is how you link HTML to your JavaScript! -> Enjoy and Prosper!
<script type="text/javascript" src="path-to-javascript-file.js"></script>