When to use JavaScript
JavaScript is still a very popular language to build web applications. For small to medium-sized projects, it is still the best option because it allows for quick prototyping and debugging in the browser. Moreover, it doesn’t take time in transpilation unlike TypeScript to convert to vanilla JS. Due to this live coding is a breeze with JavaScript.
Advantages of JavaScript |
---|
1. Easier to pick up for existing web developers |
2. Faster to prototype and debug in the browser |
3. Better performance when live coding due to lack of transpilation |
JavaScript has been steadily adding features with each iteration and according to a survey by the State of Frontend in 2020, a huge chunk of people believe that JavaScript will have new features added that make it more like TypeScript. If that’s the case, the popularity of TypeScript might take a hit. But it is also interesting to note that, a huge majority of the people think that TypeScript might take over as the most popular language. Whatever the case may be, we would have you covered.