TypeScript Ate JavaScript's Lunch: How a 2012 Side Project Became the Web Standard
Brendan Eich built JavaScript in 10 days in 1995. Anders Hejlsberg built TypeScript to fix it in 2012. By 2026, writing plain JavaScript for a professional project is considered legacy.
Key Takeaways
- •Brendan Eich created JavaScript in 10 days in May 1995 at Netscape
- •Anders Hejlsberg announced TypeScript in October 2012 at Microsoft
- •Hejlsberg also created Turbo Pascal (1983) and led C# development (2000)
- •By 2026, TypeScript is the default for professional web projects — plain JS is considered legacy
Root Connection
TypeScript's creator Anders Hejlsberg previously created Turbo Pascal (1983) and led C# (2000) — each language a step in his lifelong mission to make programming safer through type systems.
Timeline
Anders Hejlsberg creates Turbo Pascal at Borland — his first type-safe language
Brendan Eich creates JavaScript in 10 days at Netscape
Hejlsberg leads C# development at Microsoft — applies type safety to managed code
Hejlsberg announces TypeScript — a typed superset of JavaScript
Deno and major frameworks adopt TypeScript as default
TypeScript is the baseline for all serious web development — plain JS is 'legacy'
In May 1995, Brendan Eich built a programming language in 10 days. Netscape needed a scripting language for their browser, and they needed it immediately. The result was JavaScript — hastily designed, dynamically typed, full of quirks that would haunt developers for decades.
JavaScript had no types. A variable could be a number one moment and a string the next. Functions could receive the wrong arguments silently. Entire applications could crash because of typos that wouldn't surface until a user clicked the wrong button in production.
But JavaScript won. It was the only language that ran in browsers, and browsers were eating the world. By 2010, JavaScript wasn't just a scripting language — it was the programming language of the internet. Node.js put it on servers. React put it in every UI. The language Eich built in 10 days had become inescapable.
Anders Hejlsberg saw the problem clearly. The Danish programmer had spent his career building type-safe languages. He created Turbo Pascal at Borland in 1983 — a compiler so fast it changed how people thought about development tools. At Microsoft, he led the creation of C# in 2000, a language designed from the ground up with static typing.
A language built in 10 days defined the web for 20 years. Its successor took another decade to fully displace it. That's how technical debt works at internet scale.
In October 2012, Hejlsberg announced TypeScript. The concept was elegant: TypeScript is a superset of JavaScript. Every JavaScript program is already a valid TypeScript program. But TypeScript adds optional static types — annotations that tell the compiler what type a variable should be. If you pass a string where a number is expected, TypeScript catches it before your code ever runs.
The adoption was slow at first. JavaScript developers were suspicious of Microsoft and skeptical of type systems. 'JavaScript is fine,' they said. 'Types are for enterprise Java developers.'
Then the codebase grew. And grew. Applications that started as simple websites became complex platforms with hundreds of files, thousands of functions, and millions of lines of code. Without types, refactoring became terrifying. Renaming a function meant searching the entire codebase and hoping you didn't miss one. Adding a parameter meant checking every call site manually.
Hejlsberg didn't replace JavaScript. He wrapped it in a safety net. The web's foundation didn't change — it just got guardrails.
TypeScript made all of this safe. Rename a function, and the compiler tells you everywhere it's used. Change a type, and every incompatible usage lights up red. Code completion works perfectly because the editor knows the shape of every object.
Angular adopted TypeScript in 2016. Vue 3 was rewritten in TypeScript. React's ecosystem moved to TypeScript. Next.js defaults to TypeScript. Deno, the successor to Node.js created by Node's own creator Ryan Dahl, was built TypeScript-first.
By 2026, writing a professional web application in plain JavaScript is like writing a business email in pencil. It technically works. Nobody does it.
The story illuminates something important about how the internet evolves. The web's foundation — JavaScript — was built in haste. It accumulated technical debt for 17 years. The fix came not from replacement but from wrapping: TypeScript kept JavaScript's runtime but added a safety layer on top. The web's foundation didn't change. It just got guardrails.
Hejlsberg has spent 43 years building type systems. From Turbo Pascal to C# to TypeScript, his career is a single argument repeated in three languages: types make software safer. It took the web two decades to agree with him.
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