TypeScript tutorialLesson 3Free preview
TS Get Started
This lesson is part of TypeScript · All levels
Summary
To start using TypeScript, install the global package through npm and then compile the file with the tsc command. The compiler converts each file .ts to .js while checking for type errors. Watch mode is available so that files are automatically recompiled when changed.
Key points
- Installation is done with npm install -g typescript
- `tsc berkas.ts` generates the `.js` file
- Watch mode `tsc -w` automatically recompiles
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.