Are Class Methods Supported In Javascript?
When I read JavaScript The Definitive Guide, section 9.3, I encountered this: Class methods These are methods that are associated with the class rather than with instances. Ho
Solution 1:
You can just create a function as a property of another function:
function MyClass() {
}
MyClass.someFunction = function() { };
Post a Comment for "Are Class Methods Supported In Javascript?"