Just your typical pull, copy, and create a repo... and run the tests kind of exercise!
- Write a function called
moreThan5that takes in a number and returns whether or not it's greater than5. - Write a function called
isNewTopScorethat takes in a score (as a number) and a top score (as a number) and returns whether or not the score is greater than the top score. (This would be a good function in a game or gamified app to see if we need to update the high score to a new one.) - Write a function called
isInDangerthat takes in a grade (as a number) and returns whether or not it's between60and71, inclusive. - Write a function called
isCoastingthat takes in a grade (as a number) and returns whether or not it's between72and83, inclusive. - Write a function called
isSucceedingthat takes in a grade (as a number) and returns whether or not its between84and92, inclusive. - Write a function called
isFailingthat takes in a grade (as a number) and returns whether or not it's below60. - Write a function called
isAcingthat takes in a grade (as a number) and returns whether or not it's above92. - Write a function called
isStudentthat takes in a role (as a string) and returns if its value is "student". - Write a function called
isTeacherthat takes in a role (as a string) and returns if its value is "teacher". - Write a function called
isAdminthat takes in a role (as a string) and returns if its value is "admin". - Write a function called
isElementarythat takes in school level (as a string) and returns if its value is "elementary". - Write a function called
areDifferentPeoplethat takes in two names (as strings) and returns whether they're different. - Write a function called
isMiddleSchoolTeacherthat takes in a role (as a string) and a level (as a number) and returns whether they're both a teacher and the level they teach at is6to8inclusive. - Write a function called
notAnElementarySchoolAdministratorthat takes in a school level (as a string) and a role (as a string) and returns whether they're NOT an elementary school administrator. (An elementary school teacher is not, nor is a middle school administrator. And an expert scuba diver most definitely is not.)