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

Farnoosh M
Farnoosh M
10,921 Points

Object 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
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

To 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
jason chan
31,009 Points

You have to learn a framework. Like Angular or react.

Farnoosh M
Farnoosh M
10,921 Points

You mean whether you should do function programming or OO, depends on the framework you work in?