Explain in detail JavaScript and give an example of code using this language.

Explain in detail JavaScript and give an example of code using this language.