Link to home
Start Free TrialLog in
Avatar of mikha
mikhaFlag for United States of America

asked on

javascript vs typescript

I am planning to javascript, but I started reading about typescript as well.
I don't understand the relation between these two yet.

is typescript totally different language, or is javascript derived from typescript or the other way around.
Avatar of ste5an
ste5an
Flag of Germany image

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.

TypeScript is an evolution of JavaScript. It uses almost the same syntax, but enriched with a type system. So that you need to compile it into JavaScript.
Because of this evolution, you can even have JavaScript and TypeScript in the same code base, e.g. for migration projects.

Thus when you learn TypeScript, you also need to learn JavaScript.
Hello Mikha,

Typescript is nothing but a "modern" Javascript development language.
With Typescript you can write simple Javascript code.
It can run Server side (on node.js) or with any browser supporting ecmascript3.

Typescript is recommended for large "JavaScript" projects and is easily deployable.
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial