Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Last active December 19, 2018 07:45
Embed
What would you like to do?
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