Javascript can be used to change a variety of things in a website
Firstly, We can change the background. We can do this my creating a style and if the mouse is over the color it changes the background. Try it down below!
Next we can change the font of Javascript. Javscript font can be changed by using a simple document.getelementByID function. We would just have to add .style.fontFamily = "Insert whatever font here";
This is our new font!
Next we can also trigger hide/ show text!
Lets say the really annoying text from Navi in the Legend of Zelda game keeps appearing. You would defintely want to toggle her off, but I guess if you'd like you can turn her on and off.
This can be done by creating a toggle function so if it's blocking nothing it will block the text nd if its blocking something it unblocks it.
HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN! HEY LISTEN!
Now we can change the color of the header!
We can change the color of the header again using document.getElementByID this time we add .style.color = 'insert color'"