DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+3 =
Submit