What is the difference between ‘let’ and ‘const’ in TypeScript?

TypeScript Associate Easy

TypeScript Associate — Easy

What is the difference between ‘let’ and ‘const’ in TypeScript?

Key points

  • 'const' is used for values that should not change
  • 'let' allows for reassignment
  • 'const' is not limited to specific data types

Ready to go further?