linking js file path to html code example
Example 1: how to link js to html
<script src="Your-JavaScript-File.js"></script> <!--If JS file is in same folder with HTML file-->
Example 2: link js file to index.html
<script src="your js file"></script>