Home arrow JavaScript arrow Adding and Deleting JavaScript Properties and Methods
JAVASCRIPT

Adding and Deleting JavaScript Properties and Methods


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.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 4
September 25, 2009
TABLE OF CONTENTS:
  1. · Adding and Deleting JavaScript Properties and Methods
  2. · Adding without passing parameters
  3. · Explanation of the Script
  4. · Adding Properties and Methods to Object Type

print this article
SEARCH DEVARTICLES

Adding and Deleting JavaScript Properties and Methods
(Page 1 of 4 )

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).


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- 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 
Support 

Developer Shed Affiliates

 




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