how to use external javascript function in html code example Example: how to include external javascript in html <script src="script.js">