define function in head script tag code example Example: include javascript in html <script> // JS Here </script>