there are several component in typescript composed of:
Component | Description |
Variables | Used to store and manipulate data in a program. |
Types | Used to declare the type of data that a variable will hold, such as number, string, boolean, etc. |
Functions | Used to encapsulate a block of code and can be called multiple times in a program. |
Interfaces | Used to define a structure for objects or complex data types. |
Classes | Used to define objects and their properties and methods. |
Modules | Used to organize and structure code into reusable units. |
Decorators | Used to add additional behavior to a class, method, or property. |
Generics | Used to write flexible and reusable code that can work with any data type. |
All these components work together to form a complete TypeScript program that can be compiled to JavaScript and run in any browser or JavaScript environment.
We will be discussing about components in upcoming tutorials.