TS was designed and developed at Microsoft in 2012, by Anders Hejlsberg, who was the lead architect of C# and creator of Delphi and Turbo Pascal. It was created because JS showed some difficulties while solving big issues. TS also happens to be a superset of JS and that way, one can interchangeably use the two languages.
Before we discuss how long it takes to learn TypeScript, let’s understand some basics about TS and its uses.
Use of TypeScript
- Big tech companies use TypeScript for developing web applications.
- Google uses it for Google Analytics.
- It is also used by Slack, Microsoft, Meta and more.
Here are some critical differences between TS and JS:
- Static typing is seen in TS as it demands a variable type be explicitly declared and determined at compile time. This is not available in JS.
- TS is used for complex parts and JS is used to solve the simpler parts of a web program.
- TypeScript uses the principles of object-oriented programming, which involves the use of classes, interfaces, modifiers and more. It is a multiparadigm language. JS does not have class-based object-oriented programming because it is mostly a prototype-based object-oriented programming language.
How long does it take to learn it?
The time needed to learn TS depends on your existing skill set.
- As someone who has hands-on experience with JS, learning TS will take about a few weeks or a month, depending on your understanding of JS.
- Learning the broad concepts for someone with a background in programming will take about 1-2 days.
Here is the documentation from the official TS website on learning the programming language.
There are several places to learn TS from. Here is a list of courses to choose from:
- Understanding TS on Udemy: Check here!
- Typescript: The Complete Developer’s Guide on Udemy: Check here!
- TypeScript Fundamentals on PluralSight: Check here!
- Youtube tutorials (most are free)
Why should you learn it?
It is trending these days in the web development world. It has made complicated things so simple. It is simply smooth and the code structure has also improved with time. It is an in-demand skill and honing it can help the TS community grow. It can even be an addition to your skill-set and you can create interesting projects using TS.
Learning a new skill is always fun and challenging. TS will definitely help you grow in your career and if not just your career, maybe building things using this programming language might actually help you develop personal projects. Do give it a shot. Happy coding!
Also Check: Does TypeScript Support Dev Dependency?