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