You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
privatebin/jsdoc_toolkit-2.3.3-beta/app/test/prototype.js

17 lines
268 B

/** @constructor */
function Article() {
}
Article.prototype.init = function(title) {
/** the instance title */
this.title = title;
/** the static counter */
Article.counter = 1;
}
a = new Article();
a.Init("my title");
print(a.title);
print(Article.counter);