DEV Community

Cover image for What do you imagine JavaScript looks like in 5 or 10 years?
Jochem Stoel
Jochem Stoel

Posted on

What do you imagine JavaScript looks like in 5 or 10 years?

We've come a long way since the introduction of ES6, Node and the various new standard APIs. What do you imagine (or want) JavaScript to look like a decade from now? :)

Oldest comments (3)

Collapse
 
prahladyeri profile image
Prahlad Yeri • Edited

My unpopular opinion is that JavaScript has some design problems. It started its journey as a browser-embedded toy language and even today, its limitation shows. Watch this youtube video to know what I'm talking about:

Right now, people use JavaScript because its a necessity. The first version of webassembly has already shipped into the popular browsers. Its only a matter of time (like 3-4 more years) until it becomes stable, solid, documented and gains traction. Take another 4-5 years and compilers for popular languages like python, java, C#, ruby, etc. will also become stable. At that point, I think very few people will use JavaScript.

Collapse
 
jochemstoel profile image
Jochem Stoel

Interesting perspective. Better start learning that then!

Collapse
 
sub profile image
Sub

Most features that were essential for me are already there. async/await was the last notable addition.
I expect that within 10 years JS will accumulate some called-for features that are currently solved with transpilers and bundlers like custom module loaders and type checking.
5 years seem more or less predictable, considering current proposals and existing JS issues.
ES modules already arrived to Node and are prospering. As for listed code, you can expect that it will be written with top-level await:

import Node from 'node';
let Node = await Node.connect(/*...*/);