Skip to content

Instantly share code, notes, and snippets.

@winwu
Created July 25, 2016 15:31
Show Gist options
  • Save winwu/ad685c6a21b3ac51aa2fe2c274cd3a6a to your computer and use it in GitHub Desktop.
Save winwu/ad685c6a21b3ac51aa2fe2c274cd3a6a to your computer and use it in GitHub Desktop.
var Company = function (config) {
this.name = config.name;
this.fbFansUrl = config.fbFansUrl;
};
Company.prototype.getName = function () {
return this.name;
};
Company.prototype.getFbFansPage = function () {
return this.fbFansUrl;
};
@winwu
Copy link
Author

winwu commented Jul 25, 2016

company.js

var Company = function(config) {
     this.name = config.name;
     this.fbFansUrl = config.fbFansUrl;
};

Company.prototype.getName = function() {
     return this.name;
};

Company.prototype.getFbFansPage = function() { 
    return this.fbFansUrl;
};


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment