load javascript data to html in separate file code example Example: how to add javascript in html <script src="script.js"></script>