For a user, their sleep quality each day over the course of a given week (7 days) - you should be able to calculate this for any week, not just the latest week
method does not exist -- calculateAverageQualityThisWeek() could be a helper method or have useful logic
check that both method and tests are working working and passing
make sure the code is DRY/dynamic
check that variable names follow conventions
check syntax - ES6 compatible
check placement of function (does it need to be moved?)
For a user, how many hours slept each day over the course of a given week (7 days) - you should be able to calculate this for any week, not just the latest week
method does not exist -- could be a helper method or have useful logic? :
calculateAverageHoursThisWeek
check that both method and tests are working working and passing
make sure the code is DRY/dynamic
check that variable names follow conventions
check syntax - ES6 compatible
check placement of function (does it need to be moved?)
For a specific day (specified by a date), return the miles a user has walked based on their number of steps (use their strideLength to help calculate this)
Activity class line 18 -- calculateMiles()
check that both method and tests are working working and passing
make sure the code is DRY/dynamic
check that variable names follow conventions
check syntax - ES6 compatible
check placement of function (does it need to be moved?)
For a user (identified by their userID - this is the same for all methods requiring a specific user’s data), the average fluid ounces consumed per day for all time
User Repo line 74-79 -- calculateAverageDailyWater()
check that both method and tests are working working and passing
make sure the code is DRY/dynamic
check that variable names follow conventions
check syntax - ES6 compatible
check placement of function (does it need to be moved?)