TypeScript perguntas e respostas de entrevista
Question: Explain the difference between 'let' and 'const' in TypeScript.Answer: 'let' is used to declare variables with block scope, while 'const' is used to declare constants with block scope that cannot be reassigned. |
Salvar para revisao
Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.
Faca login para salvar favoritos, perguntas dificeis e conjuntos de revisao.
Isto e util? Sim Nao
Mais uteis segundo os usuarios:
- What is TypeScript?
- Explain the difference between \'let\' and \'const\' in TypeScript.
- What are the basic data types in TypeScript?
- How do you define an interface in TypeScript?
- What is the \'any\' type in TypeScript?