DEV Community

Bhupesh Chandra Joshi
Bhupesh Chandra Joshi

Posted on

The Relationship Between TypeScript and JavaScript

You can consider javaScript is typescript without types, both are same, but difference , typescript adds additional syntax for specifying types. Let's understand the typescript.

what typescript has a type-checker? Yes,typescript type checker is a part of compiler and it checks the types of typescript and throws the error,if it doesn't find any types associated with it. Before converting your typescript code, type checker dances without and checks the type errors on the code.

If you have a javacript code, you want to migrate it to typescript, you don't need to write the code again, just you need to change the extention and embedded the .ts or tsx extention at the end.

Top comments (0)