Part of JavaScript's role is to update content and make it interactive for the user. You can do this by using element properties such as innerHTML and innerText as well as document.write(). You can also change content by changing attributes and changing classes and ids that will affect the styling of an element. This also has to do with navigating the Document Object Model (or webpage structure) to access elements to change.
See the below links for how to change content: