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

TypeScript Easy
Select the correct answer: Single Choice

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?