Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add a property to a class in javascript

myObject.prototype.newproperty = "value"
 
PREVIOUS NEXT
Tagged: #add #property #class #javascript
ADD COMMENT
Topic
Name
6+1 =