Skip to content

Instantly share code, notes, and snippets.

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