Prototype property in Javascript

July 6, 2007 § Leave a comment

What it is not:

It is not Prototype Library (Toolkits for applying various DHTML effects)

What is it?

It is a built-in object that simplifies the process of adding custom properties/ methods to all instances of an object. In short, It applies any changes you made to all instances of a particular Javascript object.

Why is it useful?

When defining basic properties of Javascript object, you definitely need Prototype property.

For example, If your object is called robot, then robot.prototype would contain var head, var limbs, var body, etc. etc.

Tutorials:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading Prototype property in Javascript at RAPD.

meta

%d bloggers like this: