Table of Contents
What is TypeScript?
Examples of Additional features in TypeScript, are Strong or Static Typing, Object-Oriented Features, Compile-Time errors and also it provides Great Trolling.
Advantages of Using TypeScript
Here are the list of advantage of using TypeScript
Strong or Static Typing
If you have worked with languages like java, C# you know that in this languages when we define a variable we needs to specify the type of that variable.
In TypeScript specifying a type is optional so we don’t have to use this feature but using this features makes our application more predictable and it also makes it easy to debug the application when something goes wrong.
We have the concept of Classes, Interfaces, Constructors, access modifiers like public and private, fields, properties and so on.
Another benefit of using TypeScript, in TypeScript we can catch errors at compile time it’s of at run time, of-course not all kinds of errors but lot of errors.
So there is a compilation step included, so when we compile our TypeScript code we catch this errors and fix them before deploying our application on production.
Finally Another benefit of using TypeScript is that we get access to some great tools out there.
One thing that I personally love about TypeScript is that the intelligence we in out code editors
What should you know before learning TypeScript.
For example we use typescript in React as well in Angular Application and the process of compiling typescript code is preconfigured in those applications.