Created
October 30, 2013 10:14
-
-
Save iegorov/7230158 to your computer and use it in GitHub Desktop.
Revisions
-
iegorov renamed this gist
Oct 30, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
iegorov created this gist
Oct 30, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ function Article() { this.tags = ['js', 'css']; } Article.prototype.printTagsList = function() { console.log( this.tags.join(', ')); }; var article = new Article(); function BlogPost() {} BlogPost.prototype = article; var blog = new BlogPost(); function StaticPage() { Article.call(this); } var page = new StaticPage(); blog.printTagsList(); page.printTagsList();