+ 14
Is Typescript (.ts) similar to JavaScript (.js)?
âWhere can we use typescript & js? â On my understanding I know Javascript can be used to develop/display dynamic contents on web pages. âWhat about typescript?
8 RĂ©ponses
+ 27
Typescript is used for the same purposes as Javascript. It just simplifies the Javascript development.
Typescript is used in Angular.
+ 15
Nice question.
Actually, typescript is used for similar purpose as js.
When typescript is compiled, it produce similar .js file.
+ 13
there's also coffeeScript ...
which has its own notation ...
cson just like json
+ 12
TypeScript is a superset of JavaScript that brings users optional static types and solid tooling. Using TypeScript can help avoid painful bugs people commonly run into when writing JavaScript by type-checking your code. TypeScript can actually report issues without you even saving your file, and leverage the type system to help you write code even faster. This probably leads to a truly awesome editing experience, giving you time to think about and test the things that really matter.
+ 8
Thank Igor Makarsky ,
Thanks Max I got a picture.
âSo you must understand .js before learn .ts. Is it?
+ 6
typescript is extremely similar to js, to the point where is it basically js+type annotations and a few extra features for object oriented programming. you can use typescript everywhere you use js, but you need to transpile it to js first.
+ 5
I'm just starting to play around with typescript and I really like it. There's a typescript playground to practice:
https://www.typescriptlang.org/play/
- 2
i would recommend it, since there are more js learning resoures available and switching over is very easy(and you will probably need js anyways if you want to do webdevelopment, even if you use mainly typescript)