Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created August 28, 2015 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/eaff2bb0721be57f3b1e to your computer and use it in GitHub Desktop.
Save chuck0523/eaff2bb0721be57f3b1e to your computer and use it in GitHub Desktop.
// Generated by CoffeeScript 1.9.3
(function() {
var User, log, me, you;
log = function(x) {
return console.log(x);
};
User = (function() {
function User(name) {
this.name = name;
}
return User;
})();
me = new User("chuck");
log(me.name);
User = (function() {
function User(name1) {
this.name = name1;
}
User.prototype.hello = function() {
return log("hello, " + this.name);
};
return User;
})();
you = new User("you");
you.hello();
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment