include a html file in js file code example
Example 1: how to connect a javascript file to html
<script src="name.js">
//put in your javascript here
</script>
Example 2: include javascript in html
<script>
// JS Here
</script>
<script src="name.js">
//put in your javascript here
</script>
<script>
// JS Here
</script>