This challenge focuses on using the new for ES6 class
syntax.
Find the file index.js
and complete the tasks until all of your tests pass.
You can use yesterday's work to help you. However, if you struggled a lot with that assignment, it is recommended that you attempt to re-write all code without "cheating" (peeking at yesterday's code or copy-pasting it).
Plan to commit & push every time you get a new test passing!. Committing often makes it SO much easier to figure out "what broke my code", and helps your TL keep track of how you're doing.
If you run into trouble while coding, fight the good fight for 20 minutes and then get on the help channel. Remember to formulate your help request in a professional manner - like you would at the job - by including error messages, screenshots, and any other pertinent information about the problem, as well as what things you have attempted already while trying to solve it.
- Fork repo and add TL as collaborator on Github.
- Clone your fork (not Lambda's repo by mistake!).
cd
into your newly cloned repository.- Create a new branch by typing
git checkout -b <firstName-lastName>
. - Install dependencies by typing
npm install
. - Run tests by typing
npm run test:watch
. - Work on your branch, push commits and create PR as usual.
STRETCH PROBLEM (no tests!) - Extend the functionality of the Student by adding a prop called grade and setting it equal to a number between 1-100. - Now that our students have a grade build out a method on the Instructor (this will be used by BOTH instructors and PM's) that will randomly add or subtract points to a student's grade. Math.random will help. - Add a graduate method to a student. + This method, when called, will check the grade of the student and see if they're ready to graduate from Lambda School + If the student's grade is above a 70% let them graduate! Otherwise go back to grading their assignments to increase their score.