TypeScript is a superset of JavaScript, meaning that all valid JavaScript code is also valid TypeScript code. However, 1 TypeScript adds static typing to JavaScript, allowing you to define the data types of variables, functions, and properties. This can help you catch errors earlier in the development process and improve code readability.
-
Learn what TypeScript is and how it builds on JavaScript with static typing.
-
Understand basic types like number, string, boolean, arrays, and objects.
-
See how TypeScript infers types automatically while still letting you define them explicitly.
-
Get a simple example of writing and compiling TypeScript into JavaScript using
tsc




