DEV Community

Discussion on: Why should I learn JavaScript

Collapse
 
moseskarunia profile image
Moses Karunia

Because platforms come and go, but the web always survives.

But! The good news is, you don't "need" js to develop web, there're for example, typescript which gives you more code assurance in exchange of development velocity.

Or dart, which compiles to js, and I read somewhere, people find js-compiled-dart is quite fast. The drawback is the amount of library compared to pure js. (AngularDart or Flutter Web)

I myself prefer dart over pure js because:

  1. When architected correctly, you can share the non-presentation layer of your code across web (angular dart) and mobile apps (flutter). Flutter web is not stable yet.
  2. My experience with react native is far worse compared to flutter. So, if I pick js, I ended up with RN if I want to share any piece of code, which I prefer to be a corn farmer instead (just kidding)

Or, you can develop your apps with the app shell model which makes your front end development so much quicker (in exchange of customizability), and develop on all 3 platforms natively (kotlin, swift, js web). (Just an idea, haven't tried it myself.)

The bottom line is, it's not the language you should be consider to learn, it's what you are going to build with it. Every popular languages have their own purpose, therefore, worth learning.

Besides, if you already experienced with development in general, switching languages won't require too much time anyway. 1-2 months give or take.

Collapse
 
niharrs profile image
Niharika Singh ⛓

Interesting!