JavaScript in an external file code example Example: how to include external javascript in html <script src="script.js">