A simple but effective solution
Characteristics of this new language
The main feature of TypeScript is static typing. We say that a language is static typing when it meets these main characteristics:
- Variables have a data type.
- Values can only be assigned to variables of the corresponding type.
let age : number; //We assign the type number for the age variable age = 20; // The variable can now only assign values of type number
From these two main characteristics, some others are derived, such as
- Data Casting (Rate Conversion)
- Arguments with type
- Return type for functions
On the other hand, static typing languages lend themselves to the implementation of more advanced development tools, such as
- Recommendation of which arguments a function receives
- Recommendation of what type a function returns
- Self documentation of the code
- Better analysis to detect errors
The programming industry is incredibly diverse, even if you specialize in some area of programming, every day there is something new to learn, new technology, a new approach to problem solving, etc.
Every once in a while, a technology comes along that dazzles your eyes, that you immediately fall in love with, and you even wonder, how could you work without this technology? TypeScript is that kind of technology.
When you write a language with the intention that it will lend itself to the development of tools for developers, what do you get? A programming language with a development experience superior to others.
- more and more companies
The team that develops some of the most popular open sources use TypeScript for the development of these libraries. A couple of very popular examples are Angular and Stimulus.
This means that most of the documentation and examples of these frameworks, mainly Angular, are written with TypeScript. Eventually this means that applications developed using these libraries are made with TypeScript.
Angular is perhaps the most prominent example, virtually all applications in Angular are written using TypeScript, if you want to understand the framework in depth, you need to know TypeScript.
These decisions are not taken lightly, the teams that develop these frameworks take advantage of TypeScript features for the implementation of these frameworks and the development of web applications.
Learning and mastering this language is your gateway to other technologies.
Learning TypeScript introduces you to an incredible programming language, with even better development tools. Particularly, Visual Studio Code will offer an interesting number of improvements to your development flow.
Also, one of the great things about using TypeScript is that you can use it in different environments and for native, hybrid, web, desktop, and even web server application development.
Licenciada en Bellas Artes y programadora por pasión. Cuando tengo un rato retoco fotos, edito vídeos y diseño cosas. El resto del tiempo escribo en MA-NO WEB DESIGN END DEVELOPMENT.
When you access any element of the DOM, it is usual to save it in a variable. This is something that at first might seem very simple, but if you…
In this tutorial we are going to see how you can change the order of the elements of an array so that they are inverted. You could use a loop…
In case you have two divs of different sizes you may sometimes want to scroll both at the same time but at different speeds depending on their size. For example,…