Which keyword is used to declare a variable with a fixed type in TypeScript?

TypeScript Associate Easy

TypeScript Associate — Easy

Which keyword is used to declare a variable with a fixed type in TypeScript?

Key points

  • TypeScript allows developers to specify types for variables.
  • var, let, and const are all valid keywords for declaring variables in TypeScript.
  • Annotating types helps catch errors early in the development process.

Ready to go further?

Related questions