V
V
Vlad Yanukovich2021-08-01 11:57:18
typescript
Vlad Yanukovich, 2021-08-01 11:57:18

When to use TypeScript?

Hello ladies and gentlemen.

Expanding my horizons in the world of the front, and came to such a thing as TypeScript. In fact, the idea of ​​using it is clear to me in principle, now I am studying its capabilities and syntax.

But here's the problem. I wanted to look at examples of the use of this language and I could only find what TypeScript is used in conjunction with frames (react, angular, etc.). However, I couldn't find examples of using the language without frameworks.

In this regard, questions arose (perhaps they will seem silly, but I would like to fully understand):

1. when is it appropriate to use this language?
2. Can TS be used without frames and libraries?
3. And does it make sense to use it without frameworks?

PS my assumptions on the first question - it is usually used on large projects to make it more comfortable to write code with fewer errors.

In any case, I would like to get an answer from more experienced colleagues to all three questions.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xZand, 2021-08-01
@Vladislav6

1. Appropriate everywhere. Typing of any functions, data.
2. You can.
3. Yes. But to write something in pure Js or typesscript - why? When on the framework everything is solved much faster. If this is a pet project, you are happy to write on anything, if you work for a business, very few people write wildberry-level business logic in pure Thaiscript

W
WbICHA, 2021-08-01
@WblCHA

1. When is it appropriate to use this language?

Always.
2. Can TS be used without frames and libraries?

Yes.
3. And does it make sense to use it without frameworks?

Yes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question