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.

Farnoosh M
10,921 PointsObject Oriented Javascript
Hi :) I've just learned about Object Oriented JS. I was wondering about the use of the technique in one single application. Is it so that you should program either object oriented or functional? Or can you use your own mix, based on the logic of your code?
2 Answers

Jonathan Grieve
Treehouse Moderator 90,956 PointsTo me Object Oriented Programming is a method of keeping your code organised. I love how structured Object Literals and Constructor functions are. I'd say just use whatever you think is best or what you think will work for you. :)

jason chan
31,008 PointsYou have to learn a framework. Like Angular or react.

Farnoosh M
10,921 PointsYou mean whether you should do function programming or OO, depends on the framework you work in?
Farnoosh M
10,921 PointsFarnoosh M
10,921 PointsThanks Jonathan :)