Stylesheet changing (javascript)

Ok, you learned about HTML and CSS. it's time to go to Javascript.

JavaScript, often abbreviated as JS, is a programming language and core technology of a website, alongside HTML and CSS. Not to be confused with Java (programming language), Javanese script, or ECMAScript.

(taken from wikipedia)

99% of websites have Javascript for interactive funsies and stuff.

Ok, time to get back. We first need a .js or any JavaScript file.

And you also have to have like, two or more css stylesheets.

On your .js file, add this line of code:



then add this in your index.html or whatever you want:



output:



Go back?