Skip to content

Instantly share code, notes, and snippets.

@anthonydelgado
Created January 29, 2017 22:47
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 anthonydelgado/5caf263a2472eb9f76dcf54430b04196 to your computer and use it in GitHub Desktop.
Save anthonydelgado/5caf263a2472eb9f76dcf54430b04196 to your computer and use it in GitHub Desktop.
var Dud = function(gender, dudName, coolnessScale){
this.gender = gender
this.dudName = dudName;
this.coolnessScale = coolnessScale;
this.dudeOrDudess = function(){
if (this.gender == 'female'){
console.log("I'm a dudess. Sup?");
}else{
console.log("I'm a dude. Are there any dudesses around?");
}
}
}
module.exports = Dud;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment