TypeScript Data Types

Types can be divided into 3 categories – Any, Built-in, and User-defined. To assign a type in Typescript, you need a colon: then the name of the type, an equal sign =, and the value of that variable. For example: let name: String = “DotNetCrunch”; 1. Any This is the superset for all the data types available. It means …

TypeScript Data Types Read More »