how to link a main javascript file in html in the head code example
Example: how to connect a javascript file to html
<script src="name.js">
//put in your javascript here
</script>
<script src="name.js">
//put in your javascript here
</script>