How do you compile a TypeScript file `app.ts` using the CLI?

TypeScript Associate Easy

TypeScript Associate — Easy

How do you compile a TypeScript file `app.ts` using the CLI?

Key points

  • The correct command to compile TypeScript files is `tsc`
  • The file name should be specified after the command
  • Using `node app.ts` will run the file, not compile it

Ready to go further?

Related questions