In this chapter, we’re going to take a look at how JavaScript is used to dynamically modify our webpage. We’ll start with a basic example.
Let’s analyse the following code snippet: