Adding and Deleting JavaScript Properties and Methods
(Page 1 of 4 )
Did you know that after you have written the code for a JavaScript object, you could still add properties and methods to the object at run time? Did you know that the user can add properties and methods to a JavaScript object? In this three part series, I show you how to add JavaScript properties and methods at compile and at run time.
Likewise, I also show you how to delete properties and methods. You should have basic knowledge in JavaScript in order to understand this article. In particular, you should also have basic knowledge in JavaScript objects.
We shall begin by seeing how to add properties and methods at compile time. In this part of the series, everything deals with adding at compile time.
Object Type and Object
In JavaScript, the class of an object is called the Object Type. The object type does not refer to any object. That is, it does not refer to any object instance or member of an object class. In JavaScript the word "object" refers to an instance of the object; that is, a member of the object type (object class).
Next: Adding without passing parameters >>
More JavaScript Articles
More By Chrysanthus Forcha