Features of Typescript
Transpiler offers the error-checking feature in TypeScript. It will compile the code and produce compilation errors. Before the actual script runs, it will focus on the errors.
With TypeScript you can expect static type-checking. It is done at compile time. You will be able to locate errors while typing the code without actual execution of the code.
TypeScript could be useful where manipulation of DOM is concerned for addition and removal of elements.
It is interpreted programming language used for creation of network-oriented applications. Its integration with Java derives its name. It is a lightweight programming language. It was also called LiveScript in the beginning. One of its main features is that it doesn’t need exclusive development tools. And you don’t need a compiler as it is interpreted language. It is still not a complete language when it comes to programming.
If you are performing client-side scripting, you don’t have the feature of read/write due to security issues. It can also not be used for applications like networking. It has no provision for multiprocessing and multithreading.
It gives the option for validation of user input before the page actually gets sent off to the server.
For giving user pleasant experience, interfaces can be created where a mouse hover by the user over interface will produce a reaction.
Users will immediately see if they forgot to enter some data. They will not need to wait for page reloading.
Date and Time:
It has the provision of greeting user depending on what time of day it is along with date.
It gives the user more power of use over the browser. For example, user can modify the colour of background of pages and text on browser status bar. It is also case sensitive. It abides by simple programming rules viz. terminating every statement with semicolon.
|Identification||It is more identified as language with features of ObjectOrientedProgramming. Even though it also provides many other features.||It is identified as scripting language.|
|Static Typing||It supports static typing.||It doesn’t support it.|
|Interface||It has interface.||It doesn’t have one.|
|Modules||There is provision for modules.||There is no support for modules.|
|Optional Parameter||It supports this function.||It doesn’t support this function.|
|Compilation errors||Visible at development time.||Not visible at that time.|
|Strengths||Type system, JS features and generics.||Lightweight, first-class functions of Object-oriented language, interpreted.|
|Community||Not a large developers’ community is available.||Huge community.|
|Compilation||Code requires compilation.||Code doesn’t require compilation.|
|Annotation||For best results it is better to use annotation.||Annotation is not required.|