This project is going to be called const getStatus. getStatus is going to be a function and it is going to take the userId, the id for the user whose status you're trying to fetch. Now, the goal of this project is to just return a string along the lines. We'll start off with their name, like Andrew, and then we'll add a little bit of information; Andrew has a, in this case, I have an 83 average in the class (so I take 80, I add on 86, I divide it by 2 to generate that average). So, we want to resolve the following string from getStatus after we actually run through getUser and getGrades:
const getGrades = (schoolId) => {
return new Promise((resolve, reject) => {
resolve(grades.filter((grade) => grade.schoolId === schoolId));
});
};
// Andrew has a 83% in the class
const getStatus = (userId) => {
};