TypeScript Flashcards
1
Q
When was TypeScript introduced?
A
2012
2
Q
Who created TypeScript?
A
Microsoft
3
Q
What does the TypeScript compiler do?
A
Compiles the TypeScript code to JavaScript code that can be read by a browser
4
Q
How do you compile TypeScript to JavaScript?
A
Run the command ‘tsc fileName.ts’ - you can also auto-compile by running the command ‘tsc -w fileName.ts’
5
Q
What are some benefits of using TypeScript?
A
Limits errors as they will be exposed during compile time instead of run time, allowing us to fix mistakes before starting the web app.
6
Q
A