Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript add method to a class

MyClassName.prototype.methodName = function() {
    console.log("Hi!");
};
Source by animate.style #
 
PREVIOUS NEXT
Tagged: #javascript #add #method #class
ADD COMMENT
Topic
Name
1+7 =