all questions


latestsearch (soon)randomprivacy

this page is a permalink for the following question:

JS vs TS + explanation please?

TypeScript is JavaScript with static typing, it checks them and then outputs the JavaScript that doesn't have the type info. This lets do you do fancy stuff like enums and very rich typing on complex structures, and if your code editor supports it (use vscode), you can use that type information in auto complete. TS is nice to learn but you must know what you're doing in regular javascript first.