Member-only story
Stack Choices: JavaScript vs TypeScript
As a developer, there are many choices to make when building your next application. The rise of serverless technologies allows developers to build and run applications without thinking about servers and this also allows front-end developers to create full-stack applications and build SAAS web apps.

In Stack Choices, we take a closer look at some technologies that can help us to build these types of applications and try to make a good decision on what to use. This time, let’s take a look at going with plain old JavaScript or the rising star: TypeScript.
What is TypeScript?
TypeScript is an open-source language that builds on JavaScript by adding static type definitions. Types provide a way to describe the shape of an object, providing better documentation, and allowing TypeScript to validate that your code is working correctly.
You can easily use Typescript when starting a new React application by running yarn create react-app my-app --template typescript
or work with Angular, which comes with Typescript by default.
How popular is TypeScript?
TypeScript seems to be taking over front-end development. Almost 90% of developers (who filled in the state of js survey) admit they would like to use or learn TypeScript in their next project. Besides that, it's one of the most loved languages, according to the 2019 Developer Survey by Stack Overflow.

My personal experience
I have been working with Typescript full-time for over a year now, and I have experienced the benefits of using TypeScript when working in a team. Something I personally like is, for example, the rich IDE support. I’m using VSCode and it offers features like code navigation, autocompletion, and providing accurate suggestions. You also get feedback while typing like flagging type-related errors as soon as they occur. This can help you write more maintainable code.
Although TypeScript is really good, it’s not perfect. In the beginning, I didn’t like working with TypeScript at all. It…