Weird History of JavaScript

In 1995, Netscape Navigator was the most popular web browser. They thought of creating a programming language that could add interactivity to the website. At that time, Brendan Eich was working for Netscape Navigator. He made JavaScript in only 10 days. He named it Mocha at that time. He then changed it to LiveScript. But it wasn't gaining as much popularity as Brendan expected, and Java was very popular at that time. So, they thought of marketing it using the name of Java and changed the name of LiveScript to JavaScript.

At that time in 1996, Internet Explorer was getting very popular. But they had a feeling that Netscape Navigator was getting popular because of JavaScript. So then they copied some features of JavaScript, implemented some of their own features, and released a new programming language, JScript. So, Microsoft now had JScript for them, and Netscape Navigator had JavaScript.

So in 1996, there were two programming languages: JavaScript and JScript. But this created a sort of dilemma for normal users. So, suppose you created your website using JavaScript; it would look best viewed with Netscape Navigator, and if created with JScript, it would look best viewed with Internet Explorer. Developers started mentioning this on their websites.

A1.jpg

So, creating two websites for two separate browsers increased the budget, which was not a cup of tea for everyone. So they took JavaScript and went to ECMA. It is an international organization which standardizes different technologies. So, ECMA standardised JavaScript, and that's how it got the name ECMAScript. In 1997, ECMA released ES1, which means ECMAScript Version 1. ECMA stated that every browser will implement the same programming language. And that's how ES2, ES3, and ES4 were released. ES5 was released in 2009, and it brought a lot of new features. The usage of JavaScript suddenly increased. And in 2015, ES6 (which is also known as ECMAScript 2015 or ECMAScript6) was released. It was the biggest update in the history of JavaScript. JavaScript suddenly gained a lot of popularity. This ES6 version is today known as Modern JavaScript. ECMA has a community TC39 (Technical Community 39).

A2.jpg

So, the members of TC39 decide which features of JS will come and which features will not come. This community decided to take out its annual releases every year. They decided to keep 6 meetings in a year (one meeting every 2 months) and will discuss the upcoming features of JS. And that's the reason they changed the upgrade from ES6 to ES2015 so that every update will come with year names like ES2016, ES2017, etc. Before the approval of any features in JavaScript, it has to go through 4 stages.

A3.jpg

JavaScript is backwards compatible, which means it will support even the oldest features. Codes that were written in 1995 will still work today. But it is not forward compatible. It means if we launch a new feature today, another person is using a 15-year-old browser. The new features will not work in that browser. To tackle this, there is a tool named Babel. It transpiles the modern code according to the current version of the browser.