0
What is TS?
Hello friends I'm asking for what is TS (TypeScript)?
2 Réponses
+ 6
Mr. Man ,
you can find a brief comparison between *javascript* and *typescript* when following the link on the bottom. you can find answers about your question by using google:
https://www.geeksforgeeks.org/typescript/difference-between-typescript-and-javascript/
+ 3
It is a language that compiles eventually to plain Javascript. It allows the programmer to define types for the variables, functtion parameters or return values. Makes the code more robust, less prone to error. It still works with nodejs as it compiles/transpiles to plain JS, so you can use all your favorite node packages with it.
One note about TS is that Type checking is only done during compile time. So type error can still happen during runtime.