Skip to content

TypeScript

What would be the future of JavaScript?

JavaScript started as a scripting language for making buttons change color. Now it runs servers, builds mobile apps, controls hardware, and powers desktop...

14 Oct 2023 · 2 min read

What would be the future of JavaScript?

JavaScript started as a scripting language for making buttons change color. Now it runs servers, builds mobile apps, controls hardware, and powers desktop applications through Electron and React Native.

It's the only language the browser understands natively. That's its superpower and its curse.

Three predictions I kept hearing

"TypeScript will replace JavaScript." Not exactly. TypeScript compiles to JavaScript. It's a layer on top, not a replacement. But the momentum is real — most new projects I see start with TypeScript by default.

"JavaScript will keep expanding." Desktop apps with Electron, mobile with React Native, servers with Node. The ecosystem grows because JavaScript developers are everywhere. Hiring is easy. Sharing code across platforms is possible. That's a powerful network effect.

"Faster hardware will make JavaScript obsolete." The theory: once browsers can compile anything efficiently (via WebAssembly), there's no reason to write JavaScript at all. Use Rust, Go, C++ — whatever you want.

What actually happened

JavaScript didn't die. It adapted. ES6 brought classes, modules, arrow functions. Each year, TC39 adds more. The language keeps getting better.

WebAssembly exists, but it complements JavaScript rather than replacing it. You use WASM for performance-critical code. You use JavaScript for everything else.

The trade-off

JavaScript's ubiquity is its strength. One language across the entire stack means less context switching, more code sharing, easier hiring.

The cost: JavaScript was never designed for half the things we use it for. The type system is weak. The module story took decades to sort out. Performance ceilings are real for compute-heavy work.

Will JavaScript still be dominant in ten years? Probably. Not because it's the best language — because it's everywhere. And "everywhere" is very hard to displace.

Ehsan Gazar helps software engineers take LLM and agent systems from demo to production. He writes about building LLM systems that hold up in production: evals, tracing, RAG, agent architecture and cost control. He teaches the Senior to Staff AI Engineer cohort on Maven, where engineers learn to design and defend these systems.

Go further
Live cohort on Maven

Forward Deployed AI Engineering: From Customer Problem to Production Value

A live Maven cohort for engineers: 10 live 90-minute sessions taking one AI engagement from customer problem to production, ending with eight artefacts and a working slice in your own repo.

January cohort starts Tue 12 Jan 2027, Tue & Thu 6:30pm London. Enrolling now, 20 seats, $1,800.

View the live cohort

Keep reading