JavaScript is the programming language of HTML and the Web. Its easy to learn and implement.
JavaScript is one of the most versatile languages ever created and can be used to code applications for the browser, desktop, phone or tablet using native JavaScript coding, or through frameworks that are built on top of the core JavaScript language.
The programs in this language are called scripts. They can be written right in the HTML and execute automatically as the page loads. Scripts are provided and executed as a plain text. They don’t need a special preparation or a compilation to run.
At present, JavaScript can execute not only in the browser, but also on the server, or actually on any device where there exists a special program called the JavaScript engine.
When JavaScript was created, it initially had another name: "LiveScript". But Java language was very popular at that time, so it was decided that positioning a new language as a "younger brother" of Java would help.
But as it evolved, JavaScript became a fully independent language, with its own specification called ECMAScript, and now it has no relation to Java at all.