mikha
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.
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.