People usually have a love-hate relationship with JavaScript. It's got its beauty and its unavoidable quirks. We're all familiar with them. We can't deny that it's been an absolute powerhouse for the web, though.
You'll always find Js in the top 10 or even top 5 lists of most popular programming languages. It's also the #1 topic on dev.to!
But what if all of that suddenly went, like, POOF! ๐ป
Now now, where's this coming from?
First of all, special thanks to @technoglot for the inspiration!
Article No Longer Available
Her article asked this simple question: What would your tech stack look like if JavaScript didn't exist?
I'm a webdeveloper through and through. Naturally, I'd start unpacking all CSS-only solutions! However, I started thinking more about the implications of JavaScript's death, like...
โ Comment below answering the following question
If JavaScript stopped existing, what language do you think should replace it?
Now, I understand that some programming languages aren't quite ready for things like DOM manipulation and such. Imagine these things would be implemented into said languages.
Or perhaps you have a better version of JavaScript in mind? ๐ฎโ Let me know!

Latest comments (92)
First, I assume that the browsers will eventually understand the replacements. If the JavaScript somehow dies, I think there are lots of candidate that can fill this role. I will talk about the languages that can fill JavaScript role if it die.
TypeScript
Instead of compiling into JavaScript, it becomes a complete language. There will be no more wtf with JavaScript because if it's going to replace JavaScript, it will need to come up with their own power. The new TypeScript will eventually remove all of JavaScript weirdness.
Python
Because it is a simple language just like JavaScript. Python can model DOM as well as JavaScript and it can become even better. Python is more consistent that JavaScript so it will make development easier.
Dart
There are already a way to write React and Angular app in Dart now. If the browser can understand Dart just like JavaScript in this day, it can become the main language of writing web application. The downside is the syntax can be ugly. You can see it clearer if you try to develop something in Flutter.
I think there should be one Programming language for both Front End and Backend.
This will help us by spending time in building products instead of learning all the new frameworks.
Microsoft has the answer by introducing Blazor
Blazor : Build client web apps with
C#Check out
Blazor: dotnet.microsoft.com/apps/aspnet/w...oh god, please, no. Yeah, sure, JS has quirky bits, etc. But if I ever have to sit in another meeting about dependency injection or watch another talk factory factories, i will sign up to trades courses to become a certified electrician, a plumber or a plasterer.
There are people who love this MS lingo of ClaimsPrincipals, or figuring out if a particular interface needs to be added to a service collection as a singleton (or maybe it's transient. Nah, must be scoped), but it ain't me.
pffff
But would other none M$ Browsers want it?! Also what about none Chromium browsers like the MacOS one that Apple feels protect their users better, how long till Apple will try to kill other browsers for security reasons the same way they killed Flash?
PHP
Did everyone forget Lua? That was a nice thing, a certain grown-up site still uses Lua for its extern resource calls I heard.
I think everyone seems to be focusing so much on what they love in the backend and in there there are a ton of options. A few commenters went for Lua too and I think it makes a lot of sense when focusing on the frontend.
You guys are all in denial, we need to start using Clojurescript. Everything's going functional anyway, why not abstract away the syntax?
Rust :D
Well if JS is dead TS is also dead.... so PHP has always been there, but another alternatives could be Dart/Go or C#... or any other with WASM
Itโs time to deconstruct JavaScript