DEV Community

Discussion on: JavaScript or TypeScript first?

Collapse
 
jwp profile image
John Peters • Edited

If you learn Typescript first you will automatically know both. The only difference in getting started is whether or not Type annotations are used. For example:

//typescript and javascript are the same here, in both cases test is a default type on any
let test;
//this is typescript saying that test is a string.
let test:string;
Enter fullscreen mode Exit fullscreen mode

Of course , later on there's other advantages to use Typescript but that's a different topic.