This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Tina Huynh
There's a frequent questions that gets thrown around, "Should I learn JavaScript or Typescript??" Well, to be frank, YOU CAN'T LEARN TYPESCRIPT WITHOUT LEARNING JAVASCRIPT!!
You don't NEED to learn TypeScript though. But that doesn't mean you should not learn TypeScript. The great thing about TYpeScript is that it is a superset of JavaScript, which means all JavaScript is valid TypeScript. And once you have no issues writing JavaScript, learning TypeScript will be easy.
TypeScript shares syntax and runtime behavior with JavaScript. The great thing about TypeScript is that it always points out the compilation errors at the time of development (pre-compliation). It supports static/strong type, which means that type correctness can be checked at compile time!
TypeScript is NOT a replacement for JavaScript. They both have their advantages and disadvantages. While JavaScript is better suited for small-scale applications, TypeScript is better for larger applications. TypeScript features prototyping while JavaScript does not. TypeScript supports interfaces, which JavaScript doesn't. And TypeScript supports static typing, which JavaScript doesn't have.
Whether you end up learning one or both, it's all up to you. But, of course, start with JavaScript and work your way up.
Happy coding!
This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Tina Huynh
Tina Huynh | Sciencx (2022-09-06T19:32:39+00:00) You Can’t Learn TypeScript without JavaScript!!!. Retrieved from https://www.scien.cx/2022/09/06/you-cant-learn-typescript-without-javascript/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.