H
H
HerYtera2020-06-23 10:02:34
JavaScript
HerYtera, 2020-06-23 10:02:34

Which is better javascript or typescript?

Just started learning javascript. I came across typescript. I read it and I have a question. Why is Typescript better? Is it easier to write code on it? Maybe something was added there that is not in javascript.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2020-06-23
@HerYtera

TS contains JS underneath. Everything you write in TS will be translated into JS.
And added there for example strict typing.
If you know js well, it will be easy for you to switch to ts if necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question