Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,724 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.