TypeScript · Junior · Question 35 of 75

What does tsc compile a TypeScript file into?

Explanation

The compiler checks types and outputs JS for the specified target. In modern projects, building is often done by esbuild, SWC or Babel (which only strip types), and tsc --noEmit is run separately for checking.

Further reading

Problem with a question

TypeScript · Junior · question 35

Test yourself

Take the TypeScript · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz