add script in js file code example
Example 1: how to add javascript in html
<script src="script.js"></script>
Example 2: html bind js file
<script type="text/javascript" src="path-to-javascript-file.js"></script>
<script src="script.js"></script>
<script type="text/javascript" src="path-to-javascript-file.js"></script>