/** @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);
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 16445 | christiane_renck | Rename/move file(s) | ||
#1 | 16444 | christiane_renck | Adding MergeQuestJS to the Workshop. |