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