+ 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?

24th Jun 2018, 3:26 PM
JULIUS FREDRICK
JULIUS FREDRICK - avatar
8 Antworten
+ 27
Typescript is used for the same purposes as Javascript. It just simplifies the Javascript development. Typescript is used in Angular.
24th Jun 2018, 3:29 PM
Igor Makarsky
Igor Makarsky - avatar
+ 15
Nice question. Actually, typescript is used for similar purpose as js. When typescript is compiled, it produce similar .js file.
26th Jun 2018, 5:42 AM
∂єvєlσρєr
∂єvєlσρєr - avatar
+ 13
there's also coffeeScript ... which has its own notation ... cson just like json
26th Jun 2018, 6:00 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 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.
25th Jun 2018, 2:59 AM
Ericka
Ericka - avatar
+ 8
Thank Igor Makarsky , Thanks Max I got a picture. ❓So you must understand .js before learn .ts. Is it?
24th Jun 2018, 8:44 PM
JULIUS FREDRICK
JULIUS FREDRICK - avatar
+ 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.
24th Jun 2018, 3:40 PM
Max
Max - avatar
+ 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/
25th Jun 2018, 6:15 PM
Bagshot
Bagshot - avatar
- 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)
24th Jun 2018, 8:46 PM
Max
Max - avatar