Can we use TypeScript instead of Javascript?
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.
Yes, ONLY wherever you have a typescript compiler. You cannot simply create a HTML page and use typescript directly.