Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

nicholas maddren
nicholas maddren
12,793 Points

Should I learn Object Oreinted JavaScript before learning TypeScript?

Hey guys I am just wondering if I have to learn Object Oriented JavaScript before learning TypeScript? I just seen an introduction to TypeScript on here and was pretty confused by it all. Thanks, Nick

2 Answers

jsdevtom
jsdevtom
16,963 Points

Short answer: Yes - IMO. You will need it for typescript's extension of JavaScript's objects and classes. As well as many other things. Additionally, typescript doesn't won't give you a good understanding of how programming works, learning JavaScript will.

The only way that I could see you learning Typescript before OOP, is when you come across something new. (For example Classes), read the typescript documentation on what area of JavaScript it extends. (In this case class-based object-oriented programming. Then learn that concept well before learning the TypeScript part.

geoffrey
geoffrey
28,736 Points

Having a little bit of knowledge of how things work might be indeed handy, because even if you use TypeScript your code will be compiled into JavaScript at the end.

Learning typescript is a good thing because you'll at the same time learn ECMAScript 6 features.