Now that we have extended our server-side code to support the client-side file server, we can enhance the current web page (which is just some static data at this point) and give it the functionality it needs to pull data from the server.
Building the UI's functionality
Adding client-side JavaScript
In the third chapter, we started work with Node.js, which was JavaScript that ran on the server side. Now, we're going to introduce client-side JavaScript, or JavaScript that runs on the browser.
To run JavaScript on the browser, you will need to add a script tag anywhere in the HTML document.
The standard script tag looks like this:
<script>
console.log('Executing client side javascript ...')
...