JavaScript (JS) was created by Mr. Brendan Eich in 1995 while he was working for Netscape Corporation in the US. The language was created for the purpose of using as a scripting language in Netscape browser, one of the oldest browser among many others.
Later on, in 1996, Netscape Corporation decided to give the right to European Computer Manufacturers Association (ECMA ) to improve the language. As the result, many JavaScript versions were released by ECMA, and JavaScript version 9, under the name ECMAScript 9, was officially released in 2018 .
Today, JavaScript has evolved from a simple programming language in the browser to be one the top programming languages in the world due to its use as a major server-side programming language by Node.js.
However, to run JavaScript code in a browser, we need to write JS code between <script> tag or import external JS code from a JS file. Beside that, we could place <script> tag with JS code inside <head> or <body> tag.