Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Last active December 19, 2018 07:45
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 debugmodedotnet/82cbe2827d757fef125e49666f7f9f59 to your computer and use it in GitHub Desktop.
Save debugmodedotnet/82cbe2827d757fef125e49666f7f9f59 to your computer and use it in GitHub Desktop.
function human(name, age, money) {
this.name = name ;
this.age = age ;
this.money = money;
}
human.prototype.canEarn = function () {
console.log('yes ' + this.name + 'can earn');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment