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