JavaScript Was Created in 10 Days — and Now It Runs the Entire Internet
In May 1995, Brendan Eich was given 10 days to create a programming language for Netscape's browser. The result — originally called Mocha — is now the most widely deployed programming language in human history.
Key Takeaways
- •Created in 10 days in May 1995 by Brendan Eich at Netscape
- •Originally named Mocha, then LiveScript, then JavaScript (marketing tie to Java)
- •Runs on 98% of all websites — the most widely deployed language ever
- •Node.js (2009) allowed JavaScript to run outside browsers — servers, mobile, desktop, IoT
Root Connection
JavaScript's 10-day creation was shaped by three languages: Scheme's functions, Self's prototypes, and Java's syntax — a chaotic DNA that explains both its power and its quirks.
Timeline
Mosaic browser launches — the web goes visual for the first time
Brendan Eich creates JavaScript (Mocha) in 10 days at Netscape
ECMAScript standard published — JavaScript gets an official specification
AJAX technique popularized — JavaScript becomes essential for web apps
Node.js releases — JavaScript breaks free from the browser and runs on servers
JavaScript runs on 98% of websites and powers server, mobile, and desktop apps
In the spring of 1995, the internet was about to change forever. And one man had 10 days to build the tool that would make it happen.
Brendan Eich was a 34-year-old programmer recruited by Netscape Communications to add a scripting language to their Navigator browser. Netscape was winning the browser wars against Mosaic, and they wanted their browser to do more than display static pages. They wanted web pages that could respond to users — validate forms, animate elements, react to clicks.
Eich was hired to create 'Scheme in the browser' — a clean, functional scripting language based on the elegant Scheme language from MIT. But management changed direction. Sun Microsystems had just released Java, and Netscape had signed a deal with Sun. The new mandate: make the scripting language look like Java.
Eich later said: 'I was recruited to Netscape with the promise of doing Scheme in the browser. Then management said make it look like Java. I had 10 days.'
So Eich had to create a language that looked like Java (for marketing), felt like Scheme (for functionality), and used Self's prototype-based objects (for simplicity). And he had to do it in 10 days.
The result, initially called Mocha, was a Frankenstein of programming paradigms. It had Java-like syntax, Scheme-like first-class functions, Self-like prototypal inheritance, and a handful of design decisions that would haunt programmers for decades.
The name changed to LiveScript, then to JavaScript — a marketing decision that has confused beginners ever since. JavaScript has about as much to do with Java as a carpet has to do with a car.
Despite its rushed creation, JavaScript had a killer feature: it was the only language that ran in web browsers. If you wanted to make a web page interactive in 1995, you used JavaScript. There was no alternative.
JavaScript has been called the world's most misunderstood language. It was designed in a rush, named to ride Java's hype, and became the backbone of the modern web by accident.
This monopoly — what developers call 'the browser tax' — meant that JavaScript couldn't die even when people wanted it to. Every attempt to replace it (VBScript, Flash, Java applets, Dart, CoffeeScript) failed because browsers shipped with JavaScript built in.
For years, JavaScript was seen as a 'toy language' — good enough for form validation and image rollovers, but not for serious programming. That changed in 2005 when Jesse James Garrett published a paper describing AJAX (Asynchronous JavaScript and XML). AJAX allowed web pages to communicate with servers in the background, enabling Google Maps, Gmail, and the entire Web 2.0 era.
Suddenly, JavaScript was building real applications. Libraries like jQuery (2006) smoothed over browser inconsistencies. Frameworks like Angular (2010), React (2013), and Vue (2014) turned JavaScript into a serious application development platform.
The biggest shift came in 2009 when Ryan Dahl created Node.js — a runtime that let JavaScript run on servers. For the first time, developers could use the same language on the front end and back end. The JavaScript ecosystem exploded.
Today, JavaScript runs on 98% of all websites. It powers web apps, mobile apps (React Native), desktop apps (Electron), servers (Node.js), command-line tools, IoT devices, and even machine learning models (TensorFlow.js).
The language itself has evolved dramatically. Modern JavaScript (ES6+) has classes, arrow functions, async/await, modules, destructuring, and a rich standard library. TypeScript, a typed superset of JavaScript, has become the default for large projects.
But the quirks remain. `typeof null` returns 'object.' `NaN !== NaN` is true. `[] + []` returns an empty string. `[] + {}` returns '[object Object].' These artifacts of Eich's 10-day sprint are now permanent features because changing them would break the web.
JavaScript was created in a rush, named as a marketing ploy, and riddled with design mistakes. It also became the most widely deployed programming language in human history.
The root of the modern web is a 10-day hack. And it works.
How did this make you feel?
Recommended Gear
View all →Disclosure: Some links on this page may be affiliate links. If you make a purchase through these links, we may earn a small commission at no extra cost to you. We only recommend products we genuinely believe in.
Framework Laptop 16
The modular, repairable laptop that lets you upgrade every component. The right-to-repair movement in action.
Flipper Zero
Multi-tool for pentesters and hardware hackers. RFID, NFC, infrared, GPIO — all in your pocket.
The Innovators by Walter Isaacson
The untold story of the people who created the computer, internet, and digital revolution. Essential tech history.
reMarkable 2 Paper Tablet
E-ink tablet that feels like writing on real paper. No distractions, no notifications — just thinking.
Keep Reading
Want to dig deeper? Trace any technology back to its origins.
Start Research