The Language That Runs the Internet Was Built in 10 Days (And We're Still Paying for It)
In May 1995, Brendan Eich was given an impossible deadline: build a programming language in 10 days. He did. Now 98% of websites run on it.
The Deadline
May 1995. Netscape was at war with Microsoft for control of the web browser market. Marc Andreessen, Netscape's co-founder, wanted a scripting language embedded in the browser โ something simple that could make web pages interactive.
He hired Brendan Eich with a specific promise: you'll get to build a language based on Scheme, a elegant functional programming language. Then management changed their minds. They'd just signed a deal with Sun Microsystems. The new directive: make it look like Java.
Eich had 10 days.
The 10-Day Sprint
From May 6 to May 15, 1995, Eich locked himself away and built a prototype of what would become JavaScript. In just over a week, he created: the core syntax, functions as first-class objects, prototypal inheritance (borrowed from Self), event handling for the browser, and dynamic typing.
The result was a Frankenstein language โ Java's syntax stapled onto Scheme's functional core, with Self's prototype system bolted on. It was messy, inconsistent, and full of quirks that would haunt developers for decades.
It was also brilliant.
The Quirks We're Still Living With
Those 10 days produced some of JavaScript's most infamous behaviors. Type coercion that makes no sense on the surface: adding an empty array to an empty object produces the number zero. Comparing null to undefined returns true with double equals but false with triple equals.
These weren't bugs โ they were trade-offs made under impossible time pressure. Eich had to make hundreds of design decisions in 10 days. Some were inspired. Others were "I'll fix this later" moments that never got fixed because backward compatibility became sacred.
The web was growing too fast. You can't break the language that runs every website on earth. Every quirk, every inconsistency, every "wat" moment in JavaScript โ they're permanent. Archaeological layers of a language built in a sprint.
The Name Game
JavaScript was originally called Mocha. Then LiveScript. Then, in a marketing decision that caused decades of confusion, Netscape renamed it JavaScript to ride the hype wave of Java.
The languages have almost nothing in common. Java is statically typed, class-based, and compiled. JavaScript is dynamically typed, prototype-based, and interpreted. But the name stuck, and twenty-five years later, people still confuse them in job interviews.
Eich later said the name was "a marketing ploy" that he regretted. But by then, JavaScript was everywhere.
The Redemption Arc
For years, JavaScript was dismissed as a toy language. "Real" programmers used Java, C++, or Python. JavaScript was for making buttons change color when you hovered over them.
Then came three revolutions.
First: AJAX (2005). Gmail and Google Maps proved that JavaScript could build real applications in the browser. Second: Node.js (2009). Ryan Dahl put JavaScript on the server, and suddenly one language could run everywhere. Third: the modern ecosystem โ React, TypeScript, Next.js, Deno โ that transformed JavaScript from a scripting language into a platform.
The language built in 10 days now powers 98% of websites, runs server infrastructure, builds mobile apps, and even controls robots.
The Lesson
JavaScript's story is a reminder that great things don't need perfect beginnings. Sometimes the constraints โ the impossible deadlines, the contradictory requirements, the "make it look like Java" mandates โ produce something that's messy, human, and ultimately unstoppable.
Brendan Eich didn't set out to build the most widely-used programming language in history. He set out to survive a 10-day deadline. The language carries the scars of that sprint in every quirk and inconsistency. But it also carries something else: the adaptability, the flexibility, and the sheer stubbornness that made it the language of the web.
The best tools aren't the ones that are designed perfectly. They're the ones that refuse to die.
Keep Reading
The 3am Email That Killed Moore's Law: How Ilya Sutskever Convinced Sam Altman to Burn $100 Million on GPT-3 โ By Proving Language Models Could 'Understand' With Zero Training
In June 2020, an OpenAI researcher sent a midnight email showing that a massive language model could learn tasks it was never trained for. Within 72 hours, Sam Altman bet the company's future on scaling โ and accidentally started the race to AGI.
The 3AM Email That Made GitHub Unstoppable: How Tom Preston-Werner Bet His Marriage on a Side Project and Built the Social Network for Code
In 2007, a Ruby developer couldn't sleep. His wife was furious. His day job was suffering. But he kept coding a tool that would change how 100 million developers collaborate โ and accidentally create Microsoft's most expensive acquisition.
The 5-Minute Hack That Saved World of Warcraft: How One Engineer's Desperate Lua Script Stopped 12 Million Players From Quitting
In 2007, World of Warcraft's servers were melting under their own success. Players were rage-quitting by the thousands. Then a junior engineer named John Cash tried something that broke every rule in the Blizzard playbook โ and accidentally invented a technology pattern that would reshape online gaming forever.