Unveiling the History of JavaScript: From Mocha to the Reigning Programming Language
Dasantha Edirisinghe
Tech Entrepreneur | Fullstack developer |Data Science enthusiast | Automation
JavaScript has undeniably become the backbone of the internet, empowering countless websites with its dynamic functionality. For many years it always has claimed a top spot in the most commonly used programming languages, revolutionising the way we interact with web content. But have you ever wondered about the intriguing story behind its inception? Let's take a journey through time from its humble beginnings as Mocha to its rise as the world's most popular scripting language.
The Birth of Mocha and the Browser Wars
In the early to mid-1990s, the internet landscape was fiercely contested by industry giants Netscape and Microsoft. Their browsers, Navigator and Internet Explorer respectively, engaged in what became known as the "browser wars." It was amidst this intense competition that a Netscape programmer named Brendan Eich emerged as a pivotal figure.
In September 1995, Eich single-handedly developed a new scripting language, initially named Mocha, in a remarkably short span of just 10 days. The language aimed to bring interactivity and dynamism to web pages, but its true potential had yet to be realized.
From Mocha to JavaScript
Just a few months later, in December 1995, Netscape and Sun Microsystems entered into a license agreement. As a result, the name Mocha was changed to JavaScript, aligning it more closely with the rapidly rising popularity of Java, a compiled language. The renaming also aimed to position JavaScript as a complementary scripting language for smaller client-side tasks, while Java handled more complex web components.
The partnership between Netscape and Sun Microsystems was further motivated by the urgency to produce a working prototype promptly. Java was gaining significant traction at the time, and the pressure to capitalize on its popularity played a role in the decision to rebrand the language.
ECMA Standardization
JavaScript's rapid growth and expanding influence necessitated the establishment of a standardized framework for its development and maintenance. In 1997, Netscape entrusted the European Computer Manufacturers Association (ECMA) with the task of creating a language specification.
The resulting specification, labeled ECMA-262, encompassed not only JavaScript but also other scripting languages like JScript and ActionScript. Over the course of several years, ECMA-262 underwent three revisions, with version 4 eventually abandoned due to disagreements regarding the language's direction and proposed features.
Enter ECMAScript and ES6 Revolution
To bring order and consistency to JavaScript, the standardized specification became known as ECMAScript. ECMAScript versions aligned with the successive revisions of the ECMA-262 specification, providing a reference for implementing JavaScript.
In 2015, ECMAScript 6 (ES6) was released, marking a significant milestone in JavaScript's evolution. ES6 introduced a plethora of innovative features, including arrow functions, classes, modules, and enhanced syntax for improved readability and developer productivity. These additions revolutionized JavaScript development, empowering programmers to build complex and sophisticated applications with ease.
Today, JavaScript's ubiquity is unparalleled, shaping the digital landscape and enabling seamless interactivity across the web. Its ability to enhance web pages with dynamic content and engage users through innovative functionalities has solidified its position as the go-to programming language for web development.
lets meet again this sunday with our next blog about ES6 which is the newest ES version released in 2015 and it introduced many intersting features to javaScript stay around to learn more.
What do you guys think about javaScript changing its name from mocha to JavaScript?