/** @constructor */ function Article() { } Article.prototype = { /** @constructor */ Title: function(title) { /** the value of the Title instance */ this.title = title; }, init: function(pages) { /** the value of the pages of the Article instance */ this.pages = pages; } } f = new Article(); f.init("one two three"); t = new f.Title("my title"); print(f.pages); print(t.title);
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 16445 | christiane_renck | Rename/move file(s) | ||
#1 | 16444 | christiane_renck | Adding MergeQuestJS to the Workshop. |