JavaScript is the part of code that makes a website do something. Every button and link that you click has a JavaScript code snippet attached to it to make it work. Everything beyond text and color is JavaScript. On this page, I'll display some of the things you can do with JavaScript

Find and Replace

One thing you can do with JavaScript is take a sentence or paragraph and find specific words, replace them with something else, and see your new sentence! Let's do that below!

This text will change when you type in an input

Encrypt

An interesting thing you can do with JavaScript is take a sentence or paragraph and encrypt it. This type of encryption is called ROT13 Encryption. It takes a sentence or paragraph and shifts it 13 places along the alphabet. Try it out!

This text will change when you type in an input

If you click the button again, it will reset the encryption, as the shift of 13 places is just back to the original form.

Shuffle

Another thing you can do with JavaScript is take a sentence or paragraph and shuffle the order of the words at the click of a button!

This text will change when you type in an input