Things to learn when you are starting new in Typescript
Lets get started with Typescript

Search for a command to run...

Series
In this series, I will be providing good stuffs about typescript that will help you to learn typescript better from the start.
Lets get started with Typescript

Typescript is basically superset to JavaScript. Typescript allows us to determine types of variables, function parameters, and return values that helps us to catch type-related errors during compile time. Typescript enables developers to catch errors...
Type Annotations: Type Annotations is used to define the types of variable, function parameters, return values and object properties.Example: // Variables let value:string="Hello My Name is John Doe"; let secondValue:number=12; secondValue=12-1; // ...
Union in typescript allows the variable to hold more than one type of value. It is useful when variable can be of various types. It is defined by | operator between types. //Simple Union let randomValue:string|number=12; randomValue="John Doe"; //ran...