class Hooman {
constructMe(faveFood, likesHickey, doesAnythingButEat, gender, nerd) {
this.species = 'Hooman';
faveFood = faveFood
this.likesHickey = this.likesHickey;
this.doesAnythingButEat = doesAbsolutelyAnythingButEat;
this.gender = gender;
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 (this.food === 'Hickey' && !this.likesHickey) {
return 'Food Poisoning';
else {
return `Om nom nom... I'm stuffed!`;
},
this.readBook(isTextbook professorWatching quality) {
return
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 &
tellsProfsThatTheyReadTextbooksForFunWhenAsked
) {
`Shhh... I'm reading here!`;
} else {
return 'Who needs this textbook anyway? I should Snap instead';
}
},
Hooman.doMath(num1, num2) {
return num1 + num2;
}
}