Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara What Is TypeScript? | Introduction to TypeScript
TypeScript Foundations

bookWhat Is TypeScript?

TypeScript is a modern programming language developed and maintained by Microsoft, first released in 2012. Its main goal is to improve the development experience for large-scale JavaScript applications by introducing optional static typing and advanced development tools. TypeScript builds on JavaScript by adding features that help you catch errors early, write more robust code, and maintain complex codebases with greater confidence. Since TypeScript code compiles down to standard JavaScript, it can run anywhere JavaScript runs, making it compatible with browsers, Node.js, and other JavaScript environments. By introducing type safety and powerful tooling, TypeScript aims to make code easier to read, refactor, and debug, especially as projects grow in size and complexity.

TypeScript is often described as a superset of JavaScript. This means any valid JavaScript code is also valid TypeScript code, but TypeScript adds new capabilities on top of JavaScript. The most important feature is static typing, which lets you explicitly declare the types of variables, function parameters, and return values. This helps you detect mistakes before your code runs. In addition to static typing, TypeScript offers improved tooling support, such as smarter code completion, navigation, and refactoring tools, which make development faster and safer. These benefits set TypeScript apart from plain JavaScript, where type-related errors are usually only caught at runtime.

1234567891011121314
// TypeScript example with type annotations function greet(name: string): string { return "Hello, " + name; } let user: string = "Alice"; console.log(greet(user)); // JavaScript equivalent (no type annotations) // function greet(name) { // return "Hello, " + name; // } // let user = "Alice"; // console.log(greet(user));
copy
question mark

Which statement best describes TypeScript?

Select the correct answer

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 1

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Awesome!

Completion rate improved to 5.56

bookWhat Is TypeScript?

Scorri per mostrare il menu

TypeScript is a modern programming language developed and maintained by Microsoft, first released in 2012. Its main goal is to improve the development experience for large-scale JavaScript applications by introducing optional static typing and advanced development tools. TypeScript builds on JavaScript by adding features that help you catch errors early, write more robust code, and maintain complex codebases with greater confidence. Since TypeScript code compiles down to standard JavaScript, it can run anywhere JavaScript runs, making it compatible with browsers, Node.js, and other JavaScript environments. By introducing type safety and powerful tooling, TypeScript aims to make code easier to read, refactor, and debug, especially as projects grow in size and complexity.

TypeScript is often described as a superset of JavaScript. This means any valid JavaScript code is also valid TypeScript code, but TypeScript adds new capabilities on top of JavaScript. The most important feature is static typing, which lets you explicitly declare the types of variables, function parameters, and return values. This helps you detect mistakes before your code runs. In addition to static typing, TypeScript offers improved tooling support, such as smarter code completion, navigation, and refactoring tools, which make development faster and safer. These benefits set TypeScript apart from plain JavaScript, where type-related errors are usually only caught at runtime.

1234567891011121314
// TypeScript example with type annotations function greet(name: string): string { return "Hello, " + name; } let user: string = "Alice"; console.log(greet(user)); // JavaScript equivalent (no type annotations) // function greet(name) { // return "Hello, " + name; // } // let user = "Alice"; // console.log(greet(user));
copy
question mark

Which statement best describes TypeScript?

Select the correct answer

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 1
some-alt