March 8, 2001 - Finding an Object's Superclass

You can probe the superclass of any object via its constructor property. This property returns the function by which the object was created with the new operator. All objects (both native and user-defined) inherit from the Object object. Since the Object object supports the constructor property, all objects supports it as well. Let's look at the Employee object: