Who Invented JavaScript the Brendan Eich Story

JavaScript was created by Brendan Eich in just 10 days at Netscape in 1995. Learn the story behind the world's most popular programming language.

5 min read

Who invented JavaScript? Brendan Eich, an American programmer working at Netscape Communications, created it in May 1995. He wrote the first version of the language in just 10 days, under intense pressure to ship it fast.

That single fact -- 10 days -- explains a lot about JavaScript. It was not the product of years of careful language design. It was a prototype, built fast, that escaped into the wild and became the most widely used programming language in history.

The Context: The Browser Wars of 1995

In 1995, the web was new and mostly static. Pages were documents with text and images, connected by hyperlinks. The dominant browser was Netscape Navigator, and its main competitor was Microsoft's Internet Explorer.

Netscape wanted to add interactivity to web pages -- buttons that did something, forms that checked input, pages that changed without reloading. The browser needed a scripting language.

Two options were on the table:

  • Scheme, a minimalist Lisp dialect that Eich favored
  • Java, which Sun Microsystems was promoting as the future of web applets

Netscape management wanted something that looked like Java syntactically to ride Java's marketing wave, but was simpler and more accessible for designers and beginners. Eich was hired specifically to "write a Scheme-like language with Java syntax for the browser."

The 10-Day Sprint

In May 1995, Eich locked himself in a room and wrote the first JavaScript engine -- called SpiderMonkey -- in 10 days. The language he created borrowed:

FeatureBorrowed From
C-like syntax (braces, semicolons)Java and C
First-class functionsScheme and Lisp
Prototype-based objectsSelf (a research language)
Dynamic typingMost scripting languages of the era
Loose equality and automatic type coercionEich's own design choices

The result was a language that looked familiar to Java programmers but behaved more like a functional scripting language underneath. This split personality -- C-like syntax with Lisp-like semantics -- is still visible in JavaScript today.

The Name: Mocha, LiveScript, JavaScript

The language went through three names in rapid succession:

JavaScript naming timeline

The name "JavaScript" was a marketing decision. Sun Microsystems had just released Java, and it was generating enormous hype. Netscape made a licensing deal with Sun to use "JavaScript" as the name, hoping to make the new language sound like a lighter, friendlier version of Java.

This decision caused decades of confusion. Beginners constantly ask whether JavaScript and Java are related. They are not. The name is a branding artifact, not a technical connection.

What Happened After the 10 Days

Eich intended to refine JavaScript after the initial prototype. That never happened. Netscape Navigator 2.0 shipped with JavaScript in September 1995, and suddenly millions of people were writing code in a 10-day prototype.

Microsoft responded by reverse-engineering JavaScript and creating JScript for Internet Explorer 3.0 in 1996. To prevent the web from splitting into incompatible dialects, Netscape submitted JavaScript to Ecma International for standardization in 1997. This became ECMAScript -- the official standard that JavaScript engines still follow today.

Brendan Eich After JavaScript

Eich stayed with Netscape through its acquisition by AOL, then co-founded the Mozilla Foundation in 2003. At Mozilla, he helped create Firefox and served as CTO and briefly as CEO.

In 2014, Eich left Mozilla and co-founded Brave Software, which makes the Brave browser -- a privacy-focused browser that blocks ads and trackers by default. He also created the Basic Attention Token (BAT), a cryptocurrency-based digital advertising system.

Today, Eich is no longer directly involved in JavaScript's standardization through TC39, but the language he created in 10 days now runs on over 98% of the world's websites.

Why the 10-Day Origin Matters

Knowing that JavaScript was built in 10 days helps explain some of its quirks:

  • typeof null === "object" is a bug from the first version that was never fixed because too many websites depended on it
  • Automatic semicolon insertion sometimes produces surprising results
  • The == operator's type coercion rules are complex and inconsistent

These are not design flaws from careful deliberation. They are artifacts of a prototype that shipped too fast and became too widely used to fix. Understanding this makes JavaScript's quirks less frustrating -- they are historical fossils, not incompetence.

For the full timeline of what happened after those 10 days, read about the complete history of JavaScript. If you are new to the language entirely, start with what JavaScript is and why it matters.

Rune AI

Rune AI

Key Insights

  • JavaScript was created by Brendan Eich in May 1995 at Netscape.
  • The first version was written in just 10 days.
  • It was originally called Mocha, then LiveScript, then JavaScript.
  • The name JavaScript was a marketing deal with Sun Microsystems, not a technical link to Java.
  • Eich later co-founded Mozilla and Brave Software.
RunePowered by Rune AI

Frequently Asked Questions

How long did it take to create JavaScript?

Brendan Eich wrote the first version of JavaScript in 10 days in May 1995. It was a rushed prototype that Netscape intended to refine later, but the browser wars forced it into production almost immediately.

What was JavaScript originally called?

It was first named Mocha, then renamed to LiveScript, and finally to JavaScript as a marketing move to associate it with the popular Java language. The name JavaScript was licensed from Sun Microsystems.

Is Brendan Eich still involved with JavaScript?

Brendan Eich left Mozilla in 2014 and later co-founded Brave Software, which makes the Brave browser. He also created the Brave browser's Basic Attention Token (BAT) system. He is no longer directly involved in JavaScript's standardization.

Conclusion

JavaScript was created by Brendan Eich in 10 days at Netscape in 1995. What started as a rushed prototype to add interactivity to web pages became the most widely used programming language in the world. The story of JavaScript is a reminder that a small idea, built quickly and placed in the right environment, can change an entire industry.