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 trialFarnoosh 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 91,252 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,009 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 :)