JS

TypeScript Quiz - type annotations in typescript

28.

How are type annotations used in TypeScript?

Type annotations are only used for variables, not for function parameters or return values.

Type annotations are not necessary in TypeScript.

Type annotations are used to specify the types of variables, function parameters, and return values.

Type annotations in TypeScript are used to define the order of execution for functions.