how to link a javascipt file into a html code example Example: how to link javascript to html <script src = "index.js"></script>