how to add html code from javascript to html code example Example: how to add javascript in html <script src="script.js"></script>