using external javascript with own code example Example: how to include external javascript in html <script src="script.js">