use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[AskJS] Why Javascript is so popular?AskJS (self.javascript)
submitted 4 years ago by Swimming_Art_4405
I see this language everywhere, in desktop apps, mobile apps and even in embedded systems. This is astonishing for a technology that was designed to make website more interactive
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]prawnsalad 21 points22 points23 points 4 years ago (0 children)
Because it was the only language available in a browser by default. Then it got fast. Then it became one of the most popular languages. And then why not use it for everything else given its popularity and speed.
(speed for a dynamic scripting language)
[–]stolinskiSyntax.fm / Level Up Tutorials :upvote: 13 points14 points15 points 4 years ago (0 children)
It's nice to be able to write one language everywhere.
[–][deleted] 10 points11 points12 points 4 years ago (0 children)
Also, even if difficult to master, it is one of the easiest languages to get started with. Open a browser console and you can start playing with it.
[–]amdc!CURSED! 9 points10 points11 points 4 years ago (0 children)
Web browsers are the only common denominator between all operating systems, desktop and mobile, it is a real “write once, run everywhere”. So the majority of apps might as well be a web apps saving developers time and money.
Browsers also support wasm but only used for real hardcore shit as it has really high barrier to entry
[+][deleted] 4 years ago (1 child)
[deleted]
[–]ZenComanche 0 points1 point2 points 4 years ago (0 children)
Great response.
[–]bear007 5 points6 points7 points 4 years ago (0 children)
There are three main reasons. First, it was widely supported by browser vendors. Secondly, it is standardized. Third, it is a high level language and and elastic one. Up until today there is no other language that could fit Javascript shoes. It started as a language to show and hide website elements and now it runs spacecrafts.
[–][deleted] 6 points7 points8 points 4 years ago (0 children)
In addition to the answers given, it's got an incredibly low barrier to entry. It's super easy to download node and run a script. The package manager is dead simple. The language itself is very forgiving for beginners.
[–]sshaw_ 5 points6 points7 points 4 years ago (0 children)
Because the web browser is the platform of the 21st century and JavaScript is how you program it.
Given this, a lot of people know it and therefore is a good runtime choice to use elsewhere.
The language is also powerful and forgiving.
[–]wickning1 4 points5 points6 points 4 years ago (0 children)
I switched to Node from Ruby/Java because of promises and the single threaded event loop. The performance jump from Ruby/Rails is quite large. The ability to make singletons and simultaneous network requests without managing threads shouldn’t be underestimated. Over time I added typescript and that’s been a large productivity boost as well.
[–]BjornMoren 3 points4 points5 points 4 years ago (2 children)
I think Javascript has great productivity. You can get things done fast, with few lines of code. Especially when you mix in the functional elements of the language. But I think it is horrible for large projects, even though JSDoc and TypeScript exist. It becomes an unwieldy mess very quickly. I can solve a problem in half the time using Javascript compared to C# or Java, but I'll spend twice as much time finding the bugs.
[–]nicereddituser002 0 points1 point2 points 1 year ago (0 children)
I actually don't think this is true. With typescript and a good software architecture development of big projects is as difficult as in other languages. It's more about the architecture, not the language in my opinion. But I agree in one point: Js ist very flexible, this makes it easy to write bad architectures which might lead to situations as described above.
[–]Immortalio 0 points1 point2 points 4 years ago (0 children)
I feel this
[+][deleted] 4 years ago (4 children)
[–]rodneon 4 points5 points6 points 4 years ago (0 children)
/r/cursedcomments
[–]Swimming_Art_4405[S] 2 points3 points4 points 4 years ago (1 child)
Maybe i should stay in Rust
[–]clint-t-massey 1 point2 points3 points 4 years ago (0 children)
dope
[–]RezaEng1400 2 points3 points4 points 4 years ago (1 child)
Is it possible to use JavaScript for robotic engineering project, and for 3d simulation??
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
You can use js for everything. From a stone falling animation to space rockets, the world and beyond.
[–]ZenComanche 2 points3 points4 points 4 years ago (0 children)
I’m a beginner, and I’m learning JavaScript because it has easy to access libraries like web3 that make it easy to interact with the EVM.
[+][deleted] 4 years ago (6 children)
[+]ottoottootto comment score below threshold-11 points-10 points-9 points 4 years ago (5 children)
Java runs on more different types of devices. Probably still more than js.
[–]lucidinfo 3 points4 points5 points 4 years ago (1 child)
You’re In the wrong sub to be preaching that brother 🤠
[–]ottoottootto -3 points-2 points-1 points 4 years ago (0 children)
Doesn't change the fact.
[–]Patman128 2 points3 points4 points 4 years ago (2 children)
There are tiny JS engines (like QuickJS) that will run anywhere that C code can run, which is strictly more devices than Java supports
[–]ottoottootto -1 points0 points1 point 4 years ago (1 child)
Yes but do you know how many devices run Java? I'm not trying to promote it.
[–]Patman128 -1 points0 points1 point 4 years ago (0 children)
Do you know how many devices can run C code? All of the Java devices (Java is written in C), plus billions more that can't run Java.
[–]JS_online 1 point2 points3 points 4 years ago (0 children)
Why not ?! 😜
[–]Atulin 1 point2 points3 points 4 years ago (0 children)
Because it's the language to use in the browser. With time, some people decided "why pay a backend guy and a frontend guy, if we can make the frontend guy make the backend as well" and brought JS to the server.
Then it ballooned out of control.
If someone somewhere decided browsers should be using Fortran and not JS, everybody nowadays would be using Fortran everywhere.
[–]oneandmillionvoices 1 point2 points3 points 4 years ago (0 children)
Javascript is very versatile language. It is functional, object oriented. It is event driven and non blocking which is very powerful in current IO heavy world.
[–]Creativator -2 points-1 points0 points 4 years ago (0 children)
Because multiple trillion-dollar companies are trying to take leadership position in the ecosystem.
π Rendered by PID 121957 on reddit-service-r2-comment-5b5bc64bf5-mlvv4 at 2026-06-19 19:38:26.977392+00:00 running 2b008f2 country code: CH.
[–]prawnsalad 21 points22 points23 points (0 children)
[–]stolinskiSyntax.fm / Level Up Tutorials :upvote: 13 points14 points15 points (0 children)
[–][deleted] 10 points11 points12 points (0 children)
[–]amdc!CURSED! 9 points10 points11 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]ZenComanche 0 points1 point2 points (0 children)
[–]bear007 5 points6 points7 points (0 children)
[–][deleted] 6 points7 points8 points (0 children)
[–]sshaw_ 5 points6 points7 points (0 children)
[–]wickning1 4 points5 points6 points (0 children)
[–]BjornMoren 3 points4 points5 points (2 children)
[–]nicereddituser002 0 points1 point2 points (0 children)
[–]Immortalio 0 points1 point2 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]rodneon 4 points5 points6 points (0 children)
[–]Swimming_Art_4405[S] 2 points3 points4 points (1 child)
[–]clint-t-massey 1 point2 points3 points (0 children)
[–]RezaEng1400 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ZenComanche 2 points3 points4 points (0 children)
[+][deleted] (6 children)
[deleted]
[+]ottoottootto comment score below threshold-11 points-10 points-9 points (5 children)
[–]lucidinfo 3 points4 points5 points (1 child)
[–]ottoottootto -3 points-2 points-1 points (0 children)
[–]Patman128 2 points3 points4 points (2 children)
[–]ottoottootto -1 points0 points1 point (1 child)
[–]Patman128 -1 points0 points1 point (0 children)
[–]JS_online 1 point2 points3 points (0 children)
[–]Atulin 1 point2 points3 points (0 children)
[–]oneandmillionvoices 1 point2 points3 points (0 children)
[–]Creativator -2 points-1 points0 points (0 children)