Yes, ONLY wherever you have a typescript compiler. You cannot simply create a HTML page and use typescript directly.
Interviews2 answers
Can we use TypeScript instead of Javascript?
2 Answers
Ranganath PrasadPosted Jan 16, 2022, 3:36 PM EST
Yes we can, TS is a superset of new/modern JS, it’s better to program in TS instead of JS for obvious reason of Type Safety as it provides a complete Type System.
Sameer ShuklaPosted Dec 29, 2021, 7:50 PM EST


