So far, we’ve only been looking at how we can create code to perform certain calculations in JavaScript. At some point, we’re going to want to convert that into actual user output which people can see on their screens. Since JavaScript’s main purpose has always been to add interactivity to web pages, there are many ways to achieve this.
In this chapter, we’ll be looking at how we can use JavaScript and more specifically the document Web API to create interactivity and actually affect what the user sees ...