2019-04-25 08:13:33 -07:00

25 lines
501 B
JavaScript

/**
* This is my class, a demo thing.
* @class MyClass
* @implements {MyInterface}
* @property {number} howMany how many things it contains
*/
function MyClass() {
this.howMany = 2;
}
/**
* Get the number 42
* @param {boolean} getIt whether to get the number
* @returns {number} forty-two
*/
MyClass.prototype.getFoo = function(getIt) {
return getIt ? 42 : 0;
};
/**
* Get undefined
* @returns {undefined} does not return anything.
*/
MyClass.prototype.getUndefined = function() {};