TypeScript · Junior · Question 73 of 75

Can recent Node.js versions run a .ts file directly?

Explanation

Type stripping removes types without transformation, so features that generate code (like enum) need extra flags or a compiler.

Further reading

Problem with a question

TypeScript · Junior · question 73

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