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 trialZara Sales
UX Design Techdegree Student 787 PointsIsn't everything in Java is Object? Then why Javascript too?
Isn't everything in Java is Object? Then why Javascript too?
Why 2 languages where everything is an OBJECT?
Steven Parker
231,236 Points Hi, I got alerted by your tag but it looks like Louise beat me here and left you a very nice reply already.
Happy coding!
1 Answer
Louise St. Germain
19,424 PointsHi Zara!
Good question! Java and JavaScript are very different languages (despite their similar names), even though both of them support objects. They have different strengths and capabilities, and are therefore usually used for different things (e.g., JavaScript is used all over the place to create interactivity on web pages; Java is not used in this way).
Java and JavaScript are not the only languages that support objects. There are dozens (I wouldn't be surprised if it were over 100) of programming languages that support object-oriented programming (OOP) in some way. Other well-known examples would be C++ and Python, but there are many, many more.
All programming languages have different strengths and limitations, so choosing the right language for a project is a matter of evaluating the project requirements and finding which programming language(s) best suit those needs.
Eric Butler
33,512 PointsEric Butler
33,512 PointsWhy not? Languages share lots of things in common with each other.