how to have your script in a seperate file code example Example: how to save script in another file <script src="myscript.js"></script>