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