class Hooman {
constructor (faveFood, likesHickey, doesAnythingButEat, gender, nerd) {
this.species = 'Hooman';
this.faveFood = faveFood;
this.likesHickey = likesHickey;
this.doesAnythingButEat = doesAnythingButEat;
this.gender = gender;
this.readsBioTextbooksForFun=false;
this.nerd = nerd;
if (nerd) {
this.tellsProfsThatTheyReadTextbooksForFunWhenAsked = true;
} else {
this.tellsProfsThatTheyReadTextbooksForFunWhenAsked = false
}
}
eatFood(food) {
if (!this.doesAnythingButEat) {
return 'Yum, I want some more (OM NOM NOM NOM)';
}
else if (food === 'Hickey' && !this.likesHickey) {
return 'Food Poisoning';
}
else {
return `Om nom nom... I'm stuffed!`;
}
}
readBook(isTextbook, professorWatching, quality) {
if (quality === 'super') {
this.readsBioTextbooksForFun = true;
return 'Wow, I might actually keep reading this to learn (*gasp*)';
} else if (quality === 'snooozeville') {
this.readsBioTextbooksForFun = false;
return 'ZZZZzzzzzzzzzzzzzzz';
} else if (isTextbook && professorWatching && this.tellsProfsThatTheyReadTextbooksForFunWhenAsked) {
return "Shhh... I'm reading here!";
} else {
return 'Who needs this textbook anyway? I should Snap instead';
}
}
doMath(num1, num2) {
return num1 + num2;
}
}