Home arrow JavaScript arrow Object-Oriented JavaScript: An Introduction to Core Concepts

Object-Oriented JavaScript: An Introduction to Core Concepts

JavaScript is a powerful object-oriented language whose capability has frequently been underestimated when compared with other OO languages. This article, the first of several parts, should help you gain a better understanding of JavaScript's true value. It will show you the basics of creating custom objects and defining their methods and properties. You will also learn some advanced concepts such as Inheritance. Plenty of real-world examples will be included.

Author Info:
By: Alejandro Gervasio
Rating: 4 stars4 stars4 stars4 stars4 stars / 42
November 28, 2005
  1. · Object-Oriented JavaScript: An Introduction to Core Concepts
  2. · Working with objects in JavaScript : introducing the key concepts
  3. · Coupling methods to objects: defining self-contained constructors
  4. · Functions and objects: a closer look at the “Function” object
  5. · Getting information about objects: looking at the “constructor” property

print this article

Object-Oriented JavaScript: An Introduction to Core Concepts
(Page 1 of 5 )


For the average JavaScript programmer, working with native objects exposed by this language is more than enough to meet the requirements of frequent programming tasks. Definitely, JavaScript is a powerful object-oriented language, which has suffered for a long time from a certain amount of underestimation when being compared to other full-blown object-based languages. After all, for years it’s been the best solution for performing client-side validation, working with rollovers, using pop-up windows, and other flashy stuff. Overall, there has been a misconception that JavaScript isn’t well suited for doing “serious” programming things. 

True to form, JavaScript is an object-based language, but actually lacks certain features found in powerful languages such as Java or C++. However, to be fair, it offers some handy capabilities for creating custom objects. In many cases, these can be more useful than using traditional functions. This is particularly true when hiding complex functionality behind an object’s API implies a better approach to solve specific programming issues. To cite a good example, just spend a few minutes looking at the API of “GoogleMaps” objects, and probably you’ll realize what I’m talking about.

Considering that large JavaScript applications can actually have a remarkable impact in utilizing user-defined objects, as well as in encouraging code reusability, in this article I’ll show you the basics of how to create custom objects, define their methods and properties, together with some advanced concepts such as Inheritance. Of course, I won’t leave you to digest the boring theory all by itself without spicing up things with some real-world examples, so you can use them as part of your JavaScript programs.

Now that I’ve hopefully caught your curiosity about learning how to write object-oriented JavaScript, it’s time to move on and start grasping the basic concepts. Let’s get going!

blog comments powered by Disqus

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials